08.02.2012, 13:58
Colors are numbers, and numbers can be changed into any notation you'd like.
Suppose you have this: 0x0000FF99, which is a blue color. If you save it as integer in MySQL you would get 65433 as a value for that field, which is the correct decimal value for that hex color. Doing this works:
As does this:
Suppose you have this: 0x0000FF99, which is a blue color. If you save it as integer in MySQL you would get 65433 as a value for that field, which is the correct decimal value for that hex color. Doing this works:
pawn Код:
SendClientMessage(playerid, 65433, "This message is blue!");
pawn Код:
printf("Hex: %08x - Decimal: %d", 65433, 0x0000FF99);