Find den Fehler nicht

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
  • Hey Jungs entweder ich bin gerade zu doof oder ich peils ned aber ich finde den Fehler nicht.



    C:\Users\Kevin Pangratz\Desktop\Eigene Dateien\Inter Roleplay Script by Darius und Acer\gamemodes\VIP-Reallife.pwn(35758) : error 029: invalid expression, assumed zero
    C:\Users\Kevin Pangratz\Desktop\Eigene Dateien\Inter Roleplay Script by Darius und Acer\gamemodes\VIP-Reallife.pwn(35758) : warning 215: expression has no effect
    C:\Users\Kevin Pangratz\Desktop\Eigene Dateien\Inter Roleplay Script by Darius und Acer\gamemodes\VIP-Reallife.pwn(35758) : error 001: expected token: ";", but found "if"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    2 Errors.





    if(strcmp("/aond", cmd, true) == 0)
    {
    if(PlayerInfo[playerid][pAdmin] >= 1)
    {
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_BENUTZETEXT, "Benutze: /aond");
    return 1;
    }
    ´ if(PlayerInfo[playerid][pAdminOnDuty] == 0)
    {
    if(PlayerInfo[playerid][pAdmin] >= 1 && PlayerInfo[playerid][pAdmin] < 10 )
    {
    GetPlayerName(playerid, sendername, sizeof(sendername));
    PlayerInfo[playerid][pAdminOnDuty] = 1;
    SetPlayerHealth(playerid, 200);
    SetPlayerArmour(playerid, 2000);
    format(string, sizeof(string), "*** %s hat sich als Supporter angemeldet. ***", sendername);
    SendClientMessageToAll(COLOR_SUPPORTER, string);
    TextDrawShowForPlayer(playerid,TicketsTextdraw);
    }
    if(PlayerInfo[playerid][pAdmin] >= 10 && PlayerInfo[playerid][pAdmin] < 450 )
    {
    GetPlayerName(playerid, sendername, sizeof(sendername));
    PlayerInfo[playerid][pAdminOnDuty] = 1;
    SetPlayerHealth(playerid, 200);
    SetPlayerArmour(playerid, 2000);
    SetPlayerColor(playerid,0x1E00F0FF);
    format(string, sizeof(string), "*** %s hat sich als Moderator/Supporter angemeldet. ***", sendername);
    SendClientMessageToAll(0x1E00F0FF, string);
    TextDrawShowForPlayer(playerid,TicketsTextdraw);
    }
    if(PlayerInfo[playerid][pAdmin] >= 450 && PlayerInfo[playerid][pAdmin] < 1338 )
    {
    GetPlayerName(playerid, sendername, sizeof(sendername));
    PlayerInfo[playerid][pAdminOnDuty] = 1;
    SetPlayerHealth(playerid, 200);
    SetPlayerArmour(playerid, 2000);
    format(string, sizeof(string), "*** %s hat sich als Super Moderator angemeldet. ***", sendername);
    SendClientMessageToAll(0x2DC800FF, string);
    SetPlayerColor(playerid,0x2DC800FF);
    TextDrawShowForPlayer(playerid,TicketsTextdraw);
    }
    if(PlayerInfo[playerid][pAdmin] >= 1338 && PlayerInfo[playerid][pAdmin] < 2000 )
    {
    GetPlayerName(playerid, sendername, sizeof(sendername));
    PlayerInfo[playerid][pAdminOnDuty] = 1;
    SetPlayerHealth(playerid, 200);
    SetPlayerArmour(playerid, 2000);
    format(string, sizeof(string), "*** %s hat sich als Administrator angemeldet. ***", sendername);
    SendClientMessageToAll(0xBE00FFFF, string);
    SetPlayerColor(playerid,0xBE00FFFF);
    TextDrawShowForPlayer(playerid,TicketsTextdraw);
    }
    if(PlayerInfo[playerid][pAdmin] >= 2000 && PlayerInfo[playerid][pAdmin] < 100000 )
    {
    GetPlayerName(playerid, sendername, sizeof(sendername));
    PlayerInfo[playerid][pAdminOnDuty] = 1;
    SetPlayerHealth(playerid, 200);
    SetPlayerArmour(playerid, 2000);
    format(string, sizeof(string), "*** %s hat sich als Projektleitung angemeldet. ***", sendername);
    SendClientMessageToAll(0xC30000FF, string);
    SetPlayerColor(playerid,0xC30000FF);
    TextDrawShowForPlayer(playerid,TicketsTextdraw);
    }
    }
    else if(PlayerInfo[playerid][pAdminOnDuty] == 1)
    {
    if(PlayerInfo[playerid][pAdmin] >= 1 && PlayerInfo[playerid][pAdmin] < 10 )
    {
    GetPlayerName(playerid, sendername, sizeof(sendername));
    PlayerInfo[playerid][pAdminOnDuty] = 0;
    SetPlayerHealth(playerid, 100);
    SetPlayerArmour(playerid, 0);
    format(string, sizeof(string), "*** %s hat sich als Supporter abgemeldet. ***", sendername);
    SendClientMessageToAll(COLOR_SUPPORTER, string);
    SetPlayerToTeamColor(playerid);
    TextDrawShowForPlayer(playerid,TicketsTextdraw);
    }
    if(PlayerInfo[playerid][pAdmin] >= 10 && PlayerInfo[playerid][pAdmin] < 450 )
    {
    GetPlayerName(playerid, sendername, sizeof(sendername));
    PlayerInfo[playerid][pAdminOnDuty] = 0;
    SetPlayerHealth(playerid, 100);
    SetPlayerArmour(playerid, 0);
    format(string, sizeof(string), "*** %s hat sich als Moderator/Supporter abgemeldet. ***", sendername);
    SendClientMessageToAll(0x1E00F0FF, string);
    SetPlayerToTeamColor(playerid);
    TextDrawShowForPlayer(playerid,TicketsTextdraw);
    }
    if(PlayerInfo[playerid][pAdmin] >= 450 && PlayerInfo[playerid][pAdmin] < 1338 )
    {
    GetPlayerName(playerid, sendername, sizeof(sendername));
    PlayerInfo[playerid][pAdminOnDuty] = 0;
    SetPlayerHealth(playerid, 100);
    SetPlayerArmour(playerid, 0);
    format(string, sizeof(string), "*** %s hat sich als Super Moderator abgemeldet. ***", sendername);
    SendClientMessageToAll(0x2DC800FF, string);
    SetPlayerToTeamColor(playerid);
    TextDrawShowForPlayer(playerid,TicketsTextdraw);
    }
    if(PlayerInfo[playerid][pAdmin] >= 1338 && PlayerInfo[playerid][pAdmin] < 2000 )
    {
    GetPlayerName(playerid, sendername, sizeof(sendername));
    PlayerInfo[playerid][pAdminOnDuty] = 0;
    SetPlayerHealth(playerid, 100);
    SetPlayerArmour(playerid, 0);
    format(string, sizeof(string), "*** %s hat sich als Administrator abgemeldet. ***", sendername);
    SendClientMessageToAll(0xBE00FFFF, string);
    SetPlayerToTeamColor(playerid);
    TextDrawShowForPlayer(playerid,TicketsTextdraw);
    }
    if(PlayerInfo[playerid][pAdmin] >= 2000 && PlayerInfo[playerid][pAdmin] < 100000 )
    {
    GetPlayerName(playerid, sendername, sizeof(sendername));
    PlayerInfo[playerid][pAdminOnDuty] = 0;
    SetPlayerHealth(playerid, 100);
    SetPlayerArmour(playerid, 0);
    format(string, sizeof(string), "*** %s hat sich als Projektleitung abgemeldet. ***", sendername);
    SendClientMessageToAll(0xC30000FF, string);
    SetPlayerToTeamColor(playerid);
    TextDrawShowForPlayer(playerid,TicketsTextdraw);
    }
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_KEINADMIN, "*** INFO: Dies ist ein Adminbefehl, du bist kein Admin.");
    return 1;
    }
    return 1;
    }