Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.