11.09.2012, 09:12
Example:
0xFFFFFFFF = white, correct?
0xFF0000FF = red.
So let's say we want to use white, and THEN red text.
Take the first 6 Numbers/Letters after the 'x' sign in the hexadecimal.
0xFF0000FF becomes FF0000.
Let's say you want 'General' to appear as red, but you want to switch it back to white afterwards.
COLORS LIST - https://sampwiki.blast.hk/wiki/Hex_colours
EMBEDDING HELP - https://sampwiki.blast.hk/wiki/Colors_List
0xFFFFFFFF = white, correct?
0xFF0000FF = red.
So let's say we want to use white, and THEN red text.
Take the first 6 Numbers/Letters after the 'x' sign in the hexadecimal.
0xFF0000FF becomes FF0000.
pawn Код:
"{FF0000}RED AND THEN {FFFFFF}WHITE"
pawn Код:
strcat(pDialog, "{FF0000}General {FFFFFF}3500 Scores\n", sizeof(pDialog)); //FF0000 - switch to red. FFFFFF - switch back to white.
EMBEDDING HELP - https://sampwiki.blast.hk/wiki/Colors_List