#3

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.

pawn Код:
"{FF0000}RED AND THEN {FFFFFF}WHITE"
Let's say you want 'General' to appear as red, but you want to switch it back to white afterwards.
pawn Код:
strcat(pDialog, "{FF0000}General                {FFFFFF}3500 Scores\n", sizeof(pDialog)); //FF0000 - switch to red. FFFFFF - switch back to white.
COLORS LIST - https://sampwiki.blast.hk/wiki/Hex_colours
EMBEDDING HELP - https://sampwiki.blast.hk/wiki/Colors_List
Reply


Messages In This Thread
how? - by Windrush - 11.09.2012, 09:06
Re: how? - by Roach_ - 11.09.2012, 09:08
Re: how? - by clarencecuzz - 11.09.2012, 09:12
Re: how? - by Windrush - 11.09.2012, 09:15

Forum Jump:


Users browsing this thread: 1 Guest(s)