GetPlayerColor - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: GetPlayerColor (
/showthread.php?tid=149063)
GetPlayerColor -
DowNlOaD_ - 20.05.2010
is something wrong with this commnand: ?
Код:
if(!strcmp(cmdtext,"/cmd",true)){
new color;
color = GetPlayerColor(playerid);
format(string,sizeof(string),"hex color: %x , dec color: %d",color,color);
SendClientMessage(playerid, COLOR_ADMIN, string);
}
its returning message:
Код:
hex color: 0 , dec color: 0
please help
//edit:
i'm making something completely different but it's just a example
//edit2: ok it's solved, you can close it now
Re: GetPlayerColor -
MastahServers - 20.05.2010
new color in the header under #define
Re: GetPlayerColor -
Sergei - 20.05.2010
GetPlayerColor returns 0 if don't use SetPlayerColor anywhere before.
Re: GetPlayerColor -
kadaradam - 08.07.2011
SendClientMessage(playerid, GetPlayerColor(playerid), "This is your color

");