hallo ich habe ein fehler in script ich habe ein anti spam sys rein gemacht da ist script
//========Anti Spam ======
new
gSpamWarnings[MAX_PLAYERS],
bool:gTextBlocked[MAX_PLAYERS];
@gDeleteWarns(playerid);
@gDeleteWarns(playerid)
{
gSpamWarnings[playerid]--;
return 1;
}
@gAllowChat(playerid);
@gAllowChat(playerid)
{
gTextBlocked[playerid] = false;
SendClientMessage(playerid, 0xFFAA00FF, "Du kannst wieder chatten!");
return 1;
}
public OnPlayerText(playerid, text[])
{
if(gTextBlocked[playerid] == true) {
SendClientMessage(playerid, 0xFF0000FF, "Du darfst nichts schreiben!");
return 0;
}
gSpamWarnings[playerid]++;
if(gSpamWarnings[playerid] >= 3) {
gTextBlocked[playerid] = true;
SendClientMessage(playerid, 0xFF0000FF, "Du wurdest wegen Spam für 5 Minuten gemutet!");
SetTimerEx("gAllowChat", 300000, false, "i", playerid);
return 0;
}
SetTimerEx("gDeleteWarns", 2500, false, "i", playerid);
return 1;
}
und hier der fehler
D:\Script\gamemodes\Stunt.pwn(2549) : error 021: symbol already defined: "OnPlayerText"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
help me pls