Hex to embed colour - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Hex to embed colour (
/showthread.php?tid=447144)
Hex to embed colour -
Richie© - 28.06.2013
Is there a stock or something to convert 0x02AAFBC8 to embed colour to be used in SCM?
Re: Hex to embed colour -
Vince - 28.06.2013
If you're just going to use it statically you might as well write a macro. Otherwise use something like this:
pawn Код:
format(string, sizeof(string), "some standard text and some {%06x}colors!", GetPlayerColor(playerid) >>> 8);
Re: Hex to embed colour -
sKgaL - 28.06.2013
Easy -
You have color -
Remove 0x,
you got -
Than remove last 2 charachter.
you got -
put {},
and your done !
Re: Hex to embed colour -
Richie© - 29.06.2013
Team Colours is dynamic. Will try out that, thanks Vince!
Edit: It worked