Seif- AntiCheate-System Modifikation

Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!

Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
  • Hi!
    Habe das AntiCheatSystem von Seif bearbeitet und bin dabei fehlgeschlagen^^


    Zitat

    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) : 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?

  • Hab's jetzt nochmal überarbeitet, das Script. Jetzt gibt's diese Fehler:

    Zitat

    C:\Users\Kevin\Desktop\away\Grand Theft Auto San Andreas Snow-MP + script\SA-MP 0.3a\pawno\include\Seifensive.inc(177) : 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(177) : warning 215: expression has no effect
    C:\Users\Kevin\Desktop\away\Grand Theft Auto San Andreas Snow-MP + script\SA-MP 0.3a\pawno\include\Seifensive.inc(177) : error 001: expected token: ";", but found "if"
    C:\Users\Kevin\Desktop\away\Grand Theft Auto San Andreas Snow-MP + script\SA-MP 0.3a\pawno\include\Seifensive.inc(177) : error 017: undefined symbol "AccountInfo"
    C:\Users\Kevin\Desktop\away\Grand Theft Auto San Andreas Snow-MP + script\SA-MP 0.3a\pawno\include\Seifensive.inc(177) : fatal error 107: too many error messages on one line

    Zeile 158-182 von Seifensice.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 (AccountInfo[playerid][AdminLevel] >= 5 || IsPlayerAdmin(playerid)) //*** ZEILE 177 ***//
    {
    SendPlayerFormattedText(playerid,"Nicht Cheaten!",COLOR_RED);
    }
    }
    }

  • Hier mal Gefixxt für dich:
    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 (AccountInfo[playerid][AdminLevel] >= 5 || IsPlayerAdmin(playerid)) //*** ZEILE 177 ***//
    {
    SendPlayerFormattedText(playerid,"Nicht Cheaten!",COLOR_RED);
    }
    }
    }
    #endif