Thread: [Solved] Get playerlist with php
View Single Post
Airkish
AlliedModders Donor
Join Date: Apr 2016
Location: Lithuania
Old 12-22-2017 , 07:37   Re: Get playerlist with php
Reply With Quote #7

Quote:
Originally Posted by 4ever16 View Post
Ok so i downloaded that PHP Query script.

/Examples/Example.php -> Edited some stuff.

But it prints playerlist like this.



How can i make so it prints only Noob?
Let's say you Array name is $playerData

You can print the name like this:

PHP Code:
echo $playerData[0]['Name']; 
To print every players data you should use FOR.

PHP Code:
$totalPlayers sizeof($playerData)
for(
$i 0$i <= $totalPlayers$i++) {
echo 
$playerData[$i]['Name'];

__________________

Last edited by Airkish; 12-22-2017 at 07:41.
Airkish is offline