--
[ Picked text/plain from multipart/alternative ]
The player time is a floating point Single (In C# and Delphi Don't know what
it's called in VB)
This is my C# algorithm to read it:
{code}
Player p = new Player();
p.playerNum = br.ReadByte();
p.name = br.ReadZString();
p.kills = br.ReadInt32();
Single f = br.ReadSingle();
int H, M, S;
H = (int)f;
M = H % 3600;
H = H / 3600;
S = M % 60;
M = M / 60;
p.time = new TimeSpan(H, M, S);
{/code}
Cheers
/[+35]6-shooter
www.clan35.dk
-----Original Message-----
From: Alex Wasserman <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Date: Wed, 13 Oct 2004 06:36:26 -0400
Subject: [hlcoders] Re: Parsing Player Information
> I already had the documentation; that is not what I was looking for.
> As I understand, the last four bytes of each player information set is
> the time connected to the game. Do I concatenate the four bytes
> together in reverse after converting each one to its ascii number,
> like I did for the frags? (Asc(byte4) & Asc(byte3) & Asc(byte2) &
> Asc(byte1)) Or is there something else that I have to do? When I use
> the same method as used on the frags, I get huge numbers, such as
> 8.723432E+10, so I doubt this method is correct...all my values are
> similar to this. However, when I use this method for the frags, I get
> returned correct results...any suggestions?
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives,
> please visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>
--
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders