i dont know if it work
#7

Well actually, yes, you can. A hexadecimal number is as good a number as any other. Although anything greater than 0x7FFFFFFF will turn out as a negative number when converted to decimal. I don't know how the random() function responds to negative number. I would suggest going with 0xffffff (6 times f, rather than 8). Then shift left. Alpha is unimportant in client message so that can be omitted.

pawn Код:
new color = random(0xffffff) << 8;
Reply


Messages In This Thread
i dont know if it work - by avivelkayam - 16.08.2012, 21:43
Re: i dont know if it work - by TaLhA XIV - 16.08.2012, 21:46
Re: i dont know if it work - by avivelkayam - 16.08.2012, 21:59
Re: i dont know if it work - by _Vortex - 16.08.2012, 22:24
Re: i dont know if it work - by avivelkayam - 16.08.2012, 22:40
Re: i dont know if it work - by _Vortex - 16.08.2012, 22:50
Re: i dont know if it work - by Vince - 16.08.2012, 23:18
Re: i dont know if it work - by avivelkayam - 17.08.2012, 09:44
Re: i dont know if it work - by avivelkayam - 17.08.2012, 14:11
AW: Re: i dont know if it work - by Nero_3D - 17.08.2012, 14:32

Forum Jump:


Users browsing this thread: 1 Guest(s)