Jump to content

Including PHP file


mariuswq

Recommended Posts

Hello, I have spent hours of googling for info, and I haven't found right answer. My main goal is to display SA:MP Server players count. My code now: I am using PHP blocks.

 

include('monitorius/SampQueryAPI.php');
$query = new SampQueryAPI('', 7777);

if($query->isOnline())
{
	$aInformation = $query->getInfo();
}

echo "".$aInformation['players']." / ".$aInformation['maxplayers']."";

 

And this is the errors what I get.

http://prntscr.com/l1tgav

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...