> > Cheers for all the responses. I'm gonna take a peek at your source later on
> > to check if I am doing the same. I now have managed to map the documented
> > packet to the data returned. It turns out the some 0 null bytes mean 0 to a
> > yes/no field by the looks of it, so it all checks out.
> >
> > I am now having trouble converting a hex string (such as AF79E00) into it's
> > corresponding long value (184,000,000).
> >
> > Any ideas?
>
> float fTime = *(float *)&buffer[offset];

Dooooh!, I thought you said "float", not "long"...

long lValue = *(long *)&buffer[offset];

Jeffrey "botman" Broome

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to