Dears members of this community
I need help. I tried load php code in navbar template directly inserting code in template, to see that did not work, I started investigating.
When he was investigating, has led me to do the following:
and this is content of mostrarusers.php
PHP Code:
<?php
require_once("samp_query.php");
define(SERVER_IP, "188.165.129.157");
define(SERVER_PORT, 7777);
$rQuery = new QueryServer(SERVER_IP, SERVER_PORT);
$ainfo = $rQuery->GetInfo();
$aServerRules = $rQuery->GetRules();
$aBasicPlayer = $rQuery->GetPlayers();
$aTotalPlayers = $rQuery->GetDetailedPlayers();
$playerlist = $aTotalPlayers;
echo "' . $aInformation['Players'] . '";
$rQuery->Close( );
?>
Regards and thanks