Jump to content
  • 0

pomoc SAMP online hrači


grackar

Dotaz

Zdravim potreboval by som pomoct....

A to stim, zeby som potreboval urobit do toho script aby to počitalo porty trebars od 1111 az po 9999 a spočitalo tych online ludi dokopy boloby to mozne ? Dakujem

 

<?php

require "samp_query.php";

 

$IP = "93.184.70.70";

$Port = 7777;

 

 

try

{

$rQuery = new QueryServer( $IP, $Port );

 

 

 

$aInformation = $rQuery->GetInfo( );

 

$aServerRules = $rQuery->GetRules( );

$aBasicPlayer = $rQuery->GetPlayers( );

$aTotalPlayers = $rQuery->GetDetailedPlayers( );

$rQuery->Close( );

 

 

 

}

catch (QueryServerException $pError)

{

echo 'Server je offline';

}if(isset($aInformation) && is_array($aInformation)){

?>

 

 

Server1 <?php echo $aInformation['Players']; ?>

 

 

 

 

 

 

<?php }?>

Link to comment
Share on other sites

0 odpovědí na tuto otázku

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...