[PHP] Ayuda Online y Offline
#1

[PHP] Ayuda Online y Offline

Quote:

<?php
require "SampQueryAPI.php";

$serverIP = "127.0.0.1";
$serverPort = 7777;

try
{
$rQuery = new QueryServer( $serverIP, $serverPort );

$aInformation = $rQuery->GetInfo( );
$aServerRules = $rQuery->GetRules( );
$aBasicPlayer = $rQuery->GetPlayers( );
$aTotalPlayers = $rQuery->GetDetailedPlayers( );

$rQuery->Close( );
}
catch (QueryServerException $pError)
{}

?>

Quote:

<span id="rols2" style="color:Red"> OFFLINE </span><span id="rols2" style="color:Red">ONLINE</span>

Reply
#2

127.0.0.1 IP de tu red local , estas corriendo ese script php en local?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)