for(new dstext; dstext <sizeof Protect; dstext++)
{
if(strfind(text, Protect[dstext], true) != -1)
{
new pname[MAX_PLAYER_NAME]; GetPlayerName(playerid, pname, sizeof(pname));
format(str, sizeof(str), "%s was kicked, | reason: spam!",pname);
SendClientMessageToAll(COR_BRANCO, str);
new SalvarDV[100];
format(str, sizeof(str), "%s Disclosed, | IP: %s",pname, text);
Log("Disclosed.ini", SalvarDV);
Kick(playerid);
return 0;
}
}
C:\Users\Windows\Desktop\Bz RoleP\gamemodes\bz.pwn(2945) : error 017: undefined symbol "Protect" C:\Users\Windows\Desktop\Bz RoleP\gamemodes\bz.pwn(2947) : error 017: undefined symbol "Protect" C:\Users\Windows\Desktop\Bz RoleP\gamemodes\bz.pwn(2947) : warning 215: expression has no effect C:\Users\Windows\Desktop\Bz RoleP\gamemodes\bz.pwn(2947) : error 001: expected token: ";", but found "]" C:\Users\Windows\Desktop\Bz RoleP\gamemodes\bz.pwn(2947) : error 029: invalid expression, assumed zero C:\Users\Windows\Desktop\Bz RoleP\gamemodes\bz.pwn(2947) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 5 Errors.
public OnPlayerText(playerid, text[]) { new TCount, string[512]; new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); TCount = GetPVarInt(playerid, "TextSpam"); TCount++; SetPVarInt(playerid, "TextSpam", TCount); if(TCount == 2) { SendClientMessage(playerid, 0xFFFFFFFF, "Warning: Please stop spamming or you will be kicked from the server!"); } if(TCount == 3) { format(string, sizeof(string), "[Anti Spam]: %s was kicked by the server.", name); SendClientMessageToAll(0xD50000FF, string); Kick(playerid); TCount = 0; return 0; } SetTimerEx("ResetText", 3000, false, "i", playerid); return 0; } forward ResetText(playerid); public ResetText(playerid) { SetPVarInt(playerid, "TextSpam", 0); } |