19.03.2017, 16:29
Hi friends, I created a simple anti-spam system, is giving the following error but I do not know why!, Could anyone help me?
PHP код:
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.