Quote:
Originally Posted by ******
Ahh - you didn't say you were doing that. The code for a colour is:
pawn Код:
format(str, sizeof (str), "{%06x}", colour);
Or, if it's in RGBA format:
pawn Код:
format(str, sizeof (str), "{%06x}", colour >>> 8);
|
Great, I didn't knew that "%0_x" is possible, thanks.