OnPlayerText Problem , need help
#1

So i got those OnPlayerText

Код:
public OnPlayerText(playerid,text[])
{
	new string[128]; GetPlayerName(playerid,string,sizeof(string));
	format(string,sizeof(string),"%s {0000FF}: %s",CheckTAG(playerid),text); SendClientMessageToAll(GetPlayerColor(playerid),string);
	return 1;
}
and this is the CheckTag
Quote:

CheckTAG(playerid)
{
new Nick[MAX_PLAYER_NAME + 1],string[55];
GetPlayerName(playerid,Nick,sizeof(Nick));
if(!strcmp(Nick,"[GC]",true,4))
{
string = "{00FF00}[{FF0000}GC{00FF00}]";
strcat(string, Nick[4]);
return string;
}
strcat(string,Nick);
return string;
}
*problems*
#Message sends Twice (Duplicate)
Color of tag
Orange color
______________________________
without tag
player name its black
so
can anyone figure out how can i fix the double message send
and removing black color
Reply


Messages In This Thread
OnPlayerText Problem , need help - by CraTzy - 21.05.2016, 11:23
Re: OnPlayerText Problem , need help - by PainNagato - 21.05.2016, 11:29
Re: OnPlayerText Problem , need help - by CraTzy - 21.05.2016, 11:47
Re: OnPlayerText Problem , need help - by MBilal - 21.05.2016, 11:51

Forum Jump:


Users browsing this thread: 1 Guest(s)