GetPlayerColor
#1

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
Reply
#2

new color in the header under #define
Reply
#3

GetPlayerColor returns 0 if don't use SetPlayerColor anywhere before.
Reply
#4

SendClientMessage(playerid, GetPlayerColor(playerid), "This is your color ");
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)