Hex to embed colour
#1

Is there a stock or something to convert 0x02AAFBC8 to embed colour to be used in SCM?
Reply
#2

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);
Reply
#3

Easy -
You have color -
Код:
0x02AAFBC8
Remove 0x,
you got -
Код:
02AAFBC8
Than remove last 2 charachter.
you got -
Код:
02AAFB
put {},
and your done !

Код:
{02AAFB}
Reply
#4

Team Colours is dynamic. Will try out that, thanks Vince!

Edit: It worked
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)