|
-
Nov 29th, 2001, 08:50 AM
#1
Thread Starter
New Member
How do i get this to make sense ?
Ive made a little app that contacts a CounterStrike server and requests some info, the problem is that i can´t get it to make any sense....
what i do is to send 4 consecutive bytes of 255 (32-bit integer -1) and then the string command followed by a zero byte to terminate it
( winsock1.SendData( chr(255) & chr(255) & chr(255) & chr(255) & "info" & chr(0) ) )
and the result i should get back is as folows:
Server responds with the following packet:
(int32) -1
(byte) ASCII 'C' (info response, S2A_INFO)
(string) net address of server
(string) name of the host / server
(string) name of the map
(string) game directory (i.e. valve/)
(string) Game description (e.g. "half-life multiplay")
(byte) active client count
(byte) maximum clients allowed
(byte) protocol version (currently 7)
but all i get now is "???????????5??????7???E??????e -" so i need help on how to get this to make sense... as you can see the response is both strings and byte data...
i would really appriciate the help...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|