Tag,
Hab 2 Errors und 1 Warning.
C:\DOKUME~1\Kevin\Desktop\ANTICH~1.PWN(43) : error 017: undefined symbol "anticheat"
C:\DOKUME~1\Kevin\Desktop\ANTICH~1.PWN(49) : error 017: undefined symbol "anticheat"
C:\DOKUME~1\Kevin\Desktop\ANTICH~1.PWN(179) : warning 235: public function lacks forward declaration (symbol "AntiCheat")
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
Zeile 43
public OnGameModeInit()
{
SetGameModeText("Blank Script");
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
anticheat = SetTimer("anticheat",1000,1); //-- 43
return 1;
}
Zeile 49
public OnGameModeExit()
{
KillTimer(anticheat); //-- 49
return 1;
}
Zeile 179
public AntiCheat(playerid) //--179
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
new waffen = GetPlayerWeapon(i);
if(waffen == 38 || waffen == 4 || waffen == 35 || waffen == 16 || waffen == 17 || waffen == 18 || waffen == 26 || waffen == 32 && !IsPlayerAdmin(playerid))
{
new pname[MAX_PLAYER_NAME];
new string[100];
GetPlayerName(playerid, pname, sizeof(pname));
format(string, sizeof(string), "=AntiCheat= %s wurde wegen WaffenHack gebannt!", pname);
SendClientMessage(playerid, 0xAA3333AA, string);
Ban(i);
}
}
return 1;
}
Hoffe auf schnelle Hilfe.