Jump to content

udp reply translation?


bill21

Recommended Posts

alright, basically, im querying a half life server in order to get information on players.

i am succesful, i can read the names of all the people that are on the server, but that is it.

According to valve's query protocol, the reply has much more than the player name. the reply should be in this format:

 

Index - byte - The index into [0.. Num Players] for this entry

Player Name - string - Player's name

Kills - long - Number of kills this player has

Time connected - float - The time in seconds this player has been connected

 

now this is what it looks like in my site http://www.ironcityevil.branzone.com/stats/test.php

and here is the script http://www.ironcityevil.branzone.com/stats/test.txt

 

i believe my problem is with all the different variable types, and trying to output it as if it were a string.

is there any script i could use to make sure it outputs correctly?

Link to comment
https://forums.phpfreaks.com/topic/83046-udp-reply-translation/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.