SA-MP Forums Archive
[HELP]Function bug ? - 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: [HELP]Function bug ? (/showthread.php?tid=349426)



[HELP]Function bug ? - TheBluec0de - 09.06.2012

The function...
Код:
GetPlayerColor(playerid)
return a color blakc, why ? how to resolve this ?


Re: [HELP]Function bug ? - MZ5 - 09.06.2012

have you set the players color before hand?


Re: [HELP]Function bug ? - TheBluec0de - 09.06.2012

yes i have set the colours.. but dosent work help


Re: [HELP]Function bug ? - Jefff - 09.06.2012

https://sampwiki.blast.hk/wiki/GetPlayerColor


Re: [HELP]Function bug ? - park4bmx - 09.06.2012

Becouse you will need to use
SetPlayerColour first before retrieving it!
U should do that under on Player connect just define all ur wanted played colours and the function will work


Re: [HELP]Function bug ? - TheBluec0de - 09.06.2012

Quote:
Originally Posted by park4bmx
Посмотреть сообщение
Becouse you will need to use
SetPlayerColour first before retrieving it!
U should do that under on Player connect just define all ur wanted played colours and the function will work
i have used this but dosent work

https://sampwiki.blast.hk/wiki/ColorFix


Re: [HELP]Function bug ? - MP2 - 09.06.2012

GetPlayerColor doesn't work before SetPlayerColor has been used on a player. fixes.inc by ****** fixes this.