[SOLVED]Chat bug
#1

I've got a chat bug where it says everything twice. Here's my OnPlayerText:

Код:
public OnPlayerText(playerid, text[])
{
	new string[256];
	new tmp[256];
	new playername[MAX_PLAYER_NAME];

	if(PlayerInfo[playerid][pMuted] == 1)
	{
		SendClientMessage(playerid, TEAM_CYAN_COLOR, "You can't speak because you're muted.");
		return 0;
	}
	if (realchat)
	{
	  if(gPlayerLogged[playerid] == 0)
	  {
	    return 0;
   	}
  	GetPlayerName(playerid, playername, sizeof(playername));
		format(string, sizeof(string), "%s Says: %s", playername, text);
		ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
		return 0;
	}
	return 1;
}
I've gone over it 100 times and still can't find what's wrong. An example of the problem is as follows.

Quote:

Some_Guy Says: Hello!
Some_Guy: Hello!

And I've still not yet found why it's doing that. Any real help is appreciated.
Reply


Messages In This Thread
[SOLVED]Chat bug - by bigcomfycouch - 22.06.2009, 08:26
Re: Chat bug - by Grim_ - 22.06.2009, 08:49
Re: Chat bug - by bigcomfycouch - 22.06.2009, 09:01
Re: Chat bug - by bigcomfycouch - 22.06.2009, 09:17
Re: [SOLVED]Chat bug - by pascallj - 22.06.2009, 09:55
Re: [SOLVED]Chat bug - by SiJ - 22.06.2009, 10:31

Forum Jump:


Users browsing this thread: 2 Guest(s)