PHP interesse |
|
ok ik heb nu zon cs scriptje, maar de output is alsvolgt:
Array
(
[type] => m
[ip] => 85.12.3.64:27040
[hostname] => [GAMELUX] (DM) Need skill to survive
[map] => de_inferno
[gamedir] => cstrike
[gamedesc] => Counter-Strike
[players] => 12
[max] => 14
[version] => 47
[dedicated] => d
[os] => l
[passworded] => 0
[secure] => 1
[gameversion] => www.counter-strike.net
)
( [type] => m [ip] => 85.12.3.64:27040 [hostname] => [GAMELUX] (DM) Need skill to survive [map] => de_inferno [gamedir] => cstrike [gamedesc] => Counter-Strike [players] => 12 [version] => 47 [dedicated] => d [os] => l [passworded] => 0 [secure] => 1 [gameversion] => www.counter-strike.net )
hier de code:
<?php
error_reporting(E_ALL);
require_once('cs-class.php');
$hlsocket = new HLSocket('85.12.3.64', 27040);
print_r($hlsocket->details());
$hlsocket->close();
?>
<?php require_once('cs-class.php'); $hlsocket = new HLSocket('85.12.3.64', 27040); $hlsocket->close(); ?>
maar ik wil juist hebben dat ik zeg maar variabelen wil hebben, dus bv. $maxplayers $map enz.
kan iemand mij hlpen,
bvd rob
|