Beiträge von Hayvahn

    Hallo


    Mein COmpiler schmiert immer ab hoffe ihr könnt helfen.


    TEXT:



    //SupportSystem
    if(strcmp(cmd, "/report", true) == 0 || strcmp(cmd, "/support", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if(JustReported[playerid] == 1)
    {
    SendClientMessage(playerid, COLOR_GREY, " Bitte warte 30 Sekunden bis du den Nächsten Report schreiben kannst !");
    return 1;
    }
    ShowPlayerDialog(playerid ,DIALOG_REPORT, DIALOG_STYLE_INPUT, "{F80000}Einen Report senden","Du hast eine Frage oder möchtest einen Cheater melden?\nSchreibe denen Text hier rein:","Senden", "Abbrechen");
    }
    return 1;
    }
    if(strcmp(cmd, "/cr", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if(gPlayerLogged[playerid] == 0)
    {
    SendClientMessage(playerid, COLOR_GREY, " Du musst Eingeloggt sein !");
    return 1;
    }
    if(PlayerInfo[playerid][pAdmin] > 0)
    {
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_WHITE, "Benutze: /cr [SpielerID/SpielerName]");
    return 1;
    }
    giveplayerid = ReturnUser(tmp);
    if(IsPlayerConnected(giveplayerid))
    {
    if(giveplayerid != INVALID_PLAYER_ID)
    {
    GetPlayerName(playerid, sendername, sizeof(sendername));
    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
    format(string, sizeof(string), "** Adminstrator [ID:%d]%s hat den Report geschlossen!", playerid, sendername);
    SendClientMessage(giveplayerid, COLOR_LIGHTGREEN, string);
    format(string, sizeof(string), "** Du hast den Support geschlossen!", playerid, sendername);
    SendClientMessage(playerid, COLOR_LIGHTGREEN, string);
    SetPlayerToTeamColor(playerid);
    ReportCall[playerid] = 999;
    ReportCall[giveplayerid] = 999;
    }
    }
    }
    }
    }
    if(strcmp(cmd, "/ar", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if(gPlayerLogged[playerid] == 0)
    {
    SendClientMessage(playerid, COLOR_GREY, " Du musst Eingeloggt sein !");
    return 1;
    }
    if(PlayerInfo[playerid][pAdmin] > 0)
    {
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_WHITE, "Benutze: /ar [SpielerID/SpielerName]");
    return 1;
    }
    giveplayerid = ReturnUser(tmp);
    if(IsPlayerConnected(giveplayerid))
    {
    if(giveplayerid != INVALID_PLAYER_ID)
    {
    if(PlayerNeedsHelp[giveplayerid] == 1)
    {
    PlayerNeedsHelp[giveplayerid] = 0;
    GetPlayerName(playerid, sendername, sizeof(sendername));
    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
    format(string, sizeof(string), "AdmWarnung: %s hat den Report von: [ID:%d]%s Angenommen.", sendername, giveplayerid, giveplayer);
    ABroadCast(COLOR_YELLOW, string, 1);
    SendClientMessage(playerid, COLOR_YELLOW,"Schreib nun mit dem Spieler per Chat du bist Automatisch Verbunden.");
    SendClientMessage(playerid, COLOR_YELLOW,"Du kannst den Report mit '/cr [SpielerID/SpielerName]' schließen");
    SetPlayerColor(playerid,0x000000FF);
    format(string, sizeof(string), "** Adminstrator [ID:%d]%s hat dein Report Angenommen, er wird dich nun Supporten.", playerid, sendername);
    SendClientMessage(giveplayerid, COLOR_LIGHTGREEN, string);
    SendClientMessage(giveplayerid, COLOR_LIGHTGREEN,"Du kannst nun per Chat mit dem Admin Schreiben.");
    SendClientMessage(playerid, COLOR_LIGHTGREEN,"Du kannst nun per Chat mit dem Spieler Schreiben.");
    ReportCall[giveplayerid] = playerid;
    ReportCall[playerid] = giveplayerid; //Verbinde zum Reporter
    }
    else
    {
    SendClientMessage(playerid, COLOR_GREY, " Der Spieler hat keine Report anfrage !");
    return 1;
    }
    }
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_GREY, " Du bist kein Administrator ! ");
    return 1;
    }
    }
    return 1;
    }
    if(strcmp(cmd, "/tr", true) == 0)
    {


    if(IsPlayerConnected(playerid))
    {
    if(gPlayerLogged[playerid] == 0)
    {
    SendClientMessage(playerid, COLOR_GREY, " Du musst Eingeloggt sein !");
    return 1;
    }
    if(PlayerInfo[playerid][pAdmin] > 0)
    {
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_WHITE, "HINT: /tr [SpielerID/SpielerName]");
    return 1;
    }
    giveplayerid = ReturnUser(tmp);
    if(IsPlayerConnected(giveplayerid))
    {
    if(giveplayerid != INVALID_PLAYER_ID)
    {
    if(PlayerNeedsHelp[giveplayerid] == 1)
    {
    PlayerNeedsHelp[giveplayerid] = 0;
    GetPlayerName(playerid, sendername, sizeof(sendername));
    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
    format(string, sizeof(string), "AdmWarning: %s hat die Support Anfrage von [ID:%d]%s gelöscht.", sendername, giveplayerid, giveplayer);
    ABroadCast(COLOR_YELLOW, string, 1);
    format(string, sizeof(string), "** Administrator [ID:%d]%s hat deine Support Anfrage verweigert !", playerid, sendername);
    SendClientMessage(giveplayerid, 0xB35959AA, string);
    }
    else
    {
    SendClientMessage(playerid, COLOR_GREY, " Der Spieler hat keine Report anfrage !");
    return 1;
    }
    }
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_GREY, " Du bist kein Administrator ! ");
    return 1;
    }
    }
    return 1;
    }Error`s
    C:\Users\mobil\Desktop\Life of Midnight\LoM\gamemodes\LoM.pwn(5166) : error 010: invalid function or declarationC:\Users\mobil\Desktop\Life of Midnight\LoM\gamemodes\LoM.pwn(5168) : error 010: invalid function or declarationC:\Users\mobil\Desktop\Life of Midnight\LoM\gamemodes\LoM.pwn(5170) : error 010: invalid function or declarationC:\Users\mobil\Desktop\Life of Midnight\LoM\gamemodes\LoM.pwn(5173) : error 010: invalid function or declarationC:\Users\mobil\Desktop\Life of Midnight\LoM\gamemodes\LoM.pwn(5177) : error 010: invalid function or declarationC:\Users\mobil\Desktop\Life of Midnight\LoM\gamemodes\LoM.pwn(5179) : error 010: invalid function or declarationC:\Users\mobil\Desktop\Life of Midnight\LoM\gamemodes\LoM.pwn(5181) : error 010: invalid function or declarationC:\Users\mobil\Desktop\Life of Midnight\LoM\gamemodes\LoM.pwn(5183) : error 010: invalid function or declarationC:\Users\mobil\Desktop\Life of Midnight\LoM\gamemodes\LoM.pwn(5186) : error 010: invalid function or declarationC:\Users\mobil\Desktop\Life of Midnight\LoM\gamemodes\LoM.pwn(5188) : error 010: invalid function or declarationC:\Users\mobil\Desktop\Life of Midnight\LoM\gamemodes\LoM.pwn(5191) : error 010: invalid function or declarationC:\Users\mobil\Desktop\Life of Midnight\LoM\gamemodes\LoM.pwn(5194) : error 010: invalid function or declarationC:\Users\mobil\Desktop\Life of Midnight\LoM\gamemodes\LoM.pwn(5197) : error 010: invalid function or declarationC:\Users\mobil\Desktop\Life of Midnight\LoM\gamemodes\LoM.pwn(5199) : error 010: invalid function or declarationC:\Users\mobil\Desktop\Life of Midnight\LoM\gamemodes\LoM.pwn(5208) : error 010: invalid function or declarationC:\Users\mobil\Desktop\Life of Midnight\LoM\gamemodes\LoM.pwn(5215) : error 010: invalid function or declarationC:\Users\mobil\Desktop\Life of Midnight\LoM\gamemodes\LoM.pwn(5217) : error 010: invalid function or declarationC:\Users\mobil\Desktop\Life of Midnight\LoM\gamemodes\LoM.pwn(5219) : error 010: invalid function or declarationC:\Users\mobil\Desktop\Life of Midnight\LoM\gamemodes\LoM.pwn(5222) : error 010: invalid function or declarationC:\Users\mobil\Desktop\Life of Midnight\LoM\gamemodes\LoM.pwn(5224) : error 010: invalid function or declarationC:\Users\mobil\Desktop\Life of Midnight\LoM\gamemodes\LoM.pwn(5227) : error 010: invalid function or declarationC:\Users\mobil\Desktop\Life of Midnight\LoM\gamemodes\LoM.pwn(5230) : error 010: invalid function or declarationC:\Users\mobil\Desktop\Life of Midnight\LoM\gamemodes\LoM.pwn(5233) : error 010: invalid function or declarationC:\Users\mobil\Desktop\Life of Midnight\LoM\gamemodes\LoM.pwn(5235) : error 010: invalid function or declarationC:\Users\mobil\Desktop\Life of Midnight\LoM\gamemodes\LoM.pwn(5237) : error 010: invalid function or declarationC:\Users\mobil\Desktop\Life of Midnight\LoM\gamemodes\LoM.pwn(5244) : error 021: symbol already defined: "SendClientMessage"
    Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


    26 Errors.