Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

Hello :) I have problem with my PHP code related to SampQueryAPI.php. I've tryied to fetch playerlist with this code

<php>
$aPlayers = $query->getDetailedPlayers();
foreach ($aPlayers as $sValue)
{
</php>
<tr>
<td>{$sValue['playerid']}</td>
<td>{$sValue['nickname']}</td>
<td>{$sValue['score']}</td>
<td>{$sValue['ping']}</td>
</tr>
<php>
}
</php>

This code is fetching only one player from server while there is playing about 20 players... How can i fix it?

share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.