22.06.2009, 08:26
I've got a chat bug where it says everything twice. Here's my OnPlayerText:
I've gone over it 100 times and still can't find what's wrong. An example of the problem is as follows.
And I've still not yet found why it's doing that. Any real help is appreciated.
Код:
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; }
Quote:
Some_Guy Says: Hello! Some_Guy: Hello! |