php query results issue

First let me say I am willing to donate for some help

Ok i have a basic index.php for my home page. i downloaded GameQ v.3

all contents of the src/GameQ folder…

on my index page i added the required file it told me to

[php]<?php require_once GameQ/Autoloader.php';?> [/php]

then i added the following code to my index.php

[php]

<?php $GameQ = new \GameQ\GameQ(); $GameQ->addServer([ 'id' => 'AAPG1', 'type' => 'aapg', 'host' => '78.157.201.35:8777', 'options' => [ 'query_port' => 26021, ], ]);
			   $results = $GameQ->process(); 				   
			   echo "<pre>"; print_r($results);echo "</pre>";
			   
                ?>   

[/php]

and the results view like this even in view source

[code]

Array
(
[AAPG1] => Array
(
[gq_address] => 104.243.45.229
[gq_dedicated] =>
[gq_gametype] =>
[gq_hostname] =>
[gq_joinlink] => steam://connect/104.243.45.229:7778/
[gq_mapname] =>
[gq_maxplayers] =>
[gq_mod] =>
[gq_name] => America’s Army: Proving Grounds
[gq_numplayers] =>
[gq_online] =>
[gq_password] =>
[gq_port_client] => 7778
[gq_port_query] => 26021
[gq_protocol] => source
[gq_transport] => udp
[gq_type] => aapg
[players] => Array
(
)
        [teams] => Array
            (
            )

    )

)

[/code]

what am i doing wrong because its not showing server hostname map name nothing just those results up top

i want it to display the server info like this page just server stuff. no user list or player history like here http://battletracker.com/aa4server/78.157.201.35:8777:27020/ that one section about the server

I would contact the developer, especially if you are willing to donate. He is active in the v3 development, so that would be your best course.

Sponsor our Newsletter | Privacy Policy | Terms of Service