24.10.2016, 13:35
I have one problem i made me code with GetPlayerColor function and i got this bug with duplicate message.
https://s15.postimg.org/62nh57xtn/wtf.png
There me code
Help guys fix this duplicate msg
https://s15.postimg.org/62nh57xtn/wtf.png
There me code
Код:
new string[128], name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); if(pInfo[playerid][pAdminLevel]) format(string,sizeof(string),"{993300}[ADMIN] {%06x}%s {FFFFFF}[%i]: {FFFFFF}%s", GetPlayerColor(playerid) >>> 8, name, playerid, text); else if(pInfo[playerid][pVipLevel]) format(string,sizeof(string),"{FF6600}[DONATOR] {%06x}%s {FFFFFF}[%i]: {FFFFFF}%s", GetPlayerColor(playerid) >>> 8, name, playerid, text); else format(string,sizeof(string),"%s {FFFFFF}[%i]: {FFFFFF}%s", name, playerid, text); SendClientMessageToAll(GetPlayerColor(playerid), string); return 0; }