16.08.2012, 23:18
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;