SA-MP Forums Archive
Cannot see player color in map. - 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: Cannot see player color in map. (/showthread.php?tid=523946)



[FIXED]Cannot see player color in map. - Affan - 04.07.2014

Edit: fixed.


Re : Cannot see player color in map. - S4t3K - 04.07.2014

What do you expect "strval(namecolor)" will return ?
Btw, it's performance wasting : simply use "strval(mHolder)" because mHolder MUST be an array (so basically a string).


Re: Re : Cannot see player color in map. - Affan - 04.07.2014

Quote:
Originally Posted by S4t3K
Посмотреть сообщение
What do you expect "strval(namecolor)" will return ?
Btw, it's performance wasting : simply use "strval(mHolder)" because mHolder MUST be an array (so basically a string).
Currently it sets the color correctly, it sets BLACK color when I use IntToHex and HexToInt stock. And thanks for the tip.

Edit;

Fixed it with this