How to get a name of color? - 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: How to get a name of color? (
/showthread.php?tid=320421)
How to get a name of color? -
Gerira Gaijin - 22.02.2012
Is it possible to get a name of the color from an ID?
Like, GetColorName(0)... returns "Black" etc.
AW: How to get a name of color? -
Nanory - 22.02.2012
No...
There are almost 16.000.000 colors.
What do you want if the color ID is 500.000 ...
GetColorName(500000) returns "bloody red with a little bit orange" ?
Re: How to get a name of color? -
Gerira Gaijin - 22.02.2012
Haven't really thought about it lol
Re: How to get a name of color? -
ArmyOps - 22.02.2012
Quote:
Originally Posted by Gerira Gaijin
Is it possible to get a name of the color from an ID?
Like, GetColorName(0)... returns "Black" etc.
|
I think it's not actualy what u wanted to ask
U maybe want to reset color of the name? Like: If player "Michael" name is "Red" u want to reset it back to "Black"
Is it what u actualy wanted to ask?
But actualy u can do this other system also, but it's just easier to get name, and reset it back to "Black"