20.04.2014, 16:48
Quote:
Great!Its done.
But I have question,how come I didn't get any error when I compiled this: I haven't defined 0x0000FFFF like how I did #define COLOR_RED 0xAA3333AA pawn Код:
|
Hex codes start with '0x' and are a system of representing numbers, just like binary or decimal or the octal system. You can use hexadecimal numbers in PAWN or most languages using the prefix 0x. Defining hexadecimals is a common way for easily using colors you frequently need. This is easier to do -
pawn Код:
#define COLOR_SOME 0xFFAABB
SendClientMessage(playerid, COLOR_SOME, "Hi!");
....
pawn Код:
SendClientMessage(playerid, ... /* Wait, what was the code again? */