diff --git a/View.php b/View.php index 99358ce..a99f58b 100644 --- a/View.php +++ b/View.php @@ -2,13 +2,14 @@ require __DIR__ . '/SourceQuery/SourceQuery.class.php'; // Edit this -> - define( 'SQ_SERVER_ADDR', 'gs2.my-run.de' ); + define( 'SQ_SERVER_ADDR', 'localhost' ); define( 'SQ_SERVER_PORT', 27015 ); define( 'SQ_TIMEOUT', 1 ); define( 'SQ_ENGINE', SourceQuery :: SOURCE ); // Edit this <- $Timer = MicroTime( true ); + $Query = new SourceQuery( ); $Info = Array( ); @@ -29,6 +30,8 @@ } $Query->Disconnect( ); + + $Timer = Number_Format( MicroTime( true ) - $Timer, 4, '.', '' ); ?> @@ -36,48 +39,48 @@
This class was created to query game server which use the Source query protocol, this includes all source games, half-life 1 engine games and Call of Duty: Modern Warfare 3
+ +getMessage( ) ); ?>
+getTraceAsString(), false ); ?>
getTraceAsString(); ?>
Server Info | +Server Info (queried in s) | ||
---|---|---|---|
No information received | +
No players in da house! | +No players in da house |
Rules | @@ -149,14 +156,5 @@ - -
---|