View Single Post
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-05-2011 , 01:50   Re: [STOCK] Director Hud Message
Reply With Quote #41

So, write_long works. I thought after looking at the source code it could not work. Don't know why I have not even tried before.

EDIT : Actually here the source code of write_float :

Code:
void MSG_WriteLong (sizebuf_t *sb, int c) {       byte    *buf;       buf = (byte *)SZ_GetSpace (sb, 4);       buf[0] = c&0xff;       buf[1] = (c>>8)&0xff;       buf[2] = (c>>16)&0xff;       buf[3] = c>>24; }

So, the same like I've done before. Though I'm not sure to see well the difference between MSG_WriteLong and MSG_WriteFloat.

It was planned to post today such stock since someone requests it. I guess I will attach the file on the first post.

EDIT : done.
__________________

Last edited by Arkshine; 02-05-2011 at 08:58.
Arkshine is offline