problem with GetPlayerColor
#1

pawn Код:
public OnPlayerText(playerid, text[])
{
if(Muted{playerid}){return SendClientMessage(playerid,C_RED,"[ERROR] {ff6969}You cannot talk while you muted");}
format(String, sizeof(String), "[%d] {%06x}%s: {FFFFFF}%s",playerid,GetPlayerColor(playerid) >>> 8,GetName(playerid),text);
SendClientMessageToAll(C_HOTPINK,String);
return 0;
}
but its shows it like this in the chat:
Reply
#2

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

Read the Important Note.
Reply
#3

GetPlayerColor doesn't work right unless you use SetPlayerColor, may I suggest setting the players color to whatever you want in OnPlayerConnect?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)