javascript.
#3

Quote:
Originally Posted by Banditukas
Посмотреть сообщение
I don't need to send info to server. I need to parse it to data and get parameters to show how much is players, is server on, off, what is gamemode and etc.
Use this https://sampforum.blast.hk/showthread.php?tid=104299
Now here is example script which shows server info using above api which i mentioned :
PHP код:
<?php
require("SampQueryAPI.php");
$query = new SampQueryAPI('127.0.0.1''7777');//change ip and port here
if(!$query->isOnline())
{
    echo 
"Server Offline";
        exit();
}
$info $query->getInfo();
var_dump($info);
?>
Reply


Messages In This Thread
javascript. - by Banditukas - 02.04.2015, 14:38
Re: javascript. - by Banditukas - 03.04.2015, 10:21
Re: javascript. - by BroZeus - 04.04.2015, 05:36
Re: javascript. - by Banditukas - 04.04.2015, 06:38
Re: javascript. - by BroZeus - 04.04.2015, 10:41
Re: javascript. - by Banditukas - 04.04.2015, 11:03
Re: javascript. - by BroZeus - 04.04.2015, 11:08
Re: javascript. - by Banditukas - 04.04.2015, 12:30
Re: javascript. - by BroZeus - 04.04.2015, 15:19
Re: javascript. - by Banditukas - 04.04.2015, 17:00

Forum Jump:


Users browsing this thread: 1 Guest(s)