Hi!
Habe das AntiCheatSystem von Seif bearbeitet und bin dabei fehlgeschlagen^^
ZitatC:\Users\Kevin\Desktop\away\Grand Theft Auto San Andreas Snow-MP + script\SA-MP 0.3a\pawno\include\Seifensive.inc(182) : error 029: invalid expression, assumed zero
C:\Users\Kevin\Desktop\away\Grand Theft Auto San Andreas Snow-MP + script\SA-MP 0.3a\pawno\include\Seifensive.inc(182) : error 001: expected token: ";", but found ")"
C:\Users\Kevin\Desktop\away\Grand Theft Auto San Andreas Snow-MP + script\SA-MP 0.3a\pawno\include\Seifensive.inc(182) : error 029: invalid expression, assumed zero
C:\Users\Kevin\Desktop\away\Grand Theft Auto San Andreas Snow-MP + script\SA-MP 0.3a\pawno\include\Seifensive.inc(182) : fatal error 107: too many error messages on one line
Zeile 162-187 von der Seifensive.inc:
public HackingDetected(playerid, reason[])
{
new string[128];
new name[MAX_PLAYER_NAME];
// new reason[STRING];
GetPlayerName(playerid, name, sizeof(name));
if (HACKER == BAN)
{
format(string, sizeof(string), "|- SeifensiveBot has kicked %s | Reason: %s -|", name, reason);
SendClientMessageToAll(ADMIN_RED, string);
Kick(playerid, reason);
}
else if (HACKER == KICK)
{
format(string, sizeof(string), "|- SeifensiveBot has kicked %s | Reason: %s -|", name, reason);
SendClientMessageToAll(ADMIN_RED, string);
Kick(playerid, reason);
}
else if
{
if (AccountInfo[playerid][AdminLevel] >= 5 || IsPlayerAdmin(playerid))
{
SendPlayerFormattedText(playerid,"Nicht Cheaten!",COLOR_RED);
}
}
}
Zeile 176-187 vom Gamemode:
public BanLog(string[])
{
new entry[256];
format(entry, sizeof(entry), "%s\r\n",string);
new File:hFile;
hFile = fopen("ban.log", io_append);
if (hFile)
{
fwrite(hFile, entry);
fclose(hFile);
}
}
Wo ist der Fehler?