Hilfe~ symbol already defined

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
  • C:\Users\syntexx\Desktop\Script\gamemodes\SGR.pwn(307) : warning 201: redefinition of constant/macro (symbol "SysInfo")
    C:\Users\syntexx\Desktop\Script\gamemodes\SGR.pwn(308) : error 021: symbol already defined: "PMoney"
    C:\Users\syntexx\Desktop\Script\gamemodes\SGR.pwn(333) : error 021: symbol already defined: "M_Bot"
    C:\Users\syntexx\Desktop\Script\gamemodes\SGR.pwn(335) : error 021: symbol already defined: "BanWeaponIDs"
    C:\Users\syntexx\Desktop\Script\gamemodes\SGR.pwn(346) : error 021: symbol already defined: "BanClanTags"
    C:\Users\syntexx\Desktop\Script\gamemodes\SGR.pwn(351) : error 021: symbol already defined: "BanNames"
    C:\Users\syntexx\Desktop\Script\gamemodes\SGR.pwn(369) : error 021: symbol already defined: "GettedHealth"
    C:\Users\syntexx\Desktop\Script\gamemodes\SGR.pwn(376) : error 021: symbol already defined: "EnableChecking"
    C:\Users\syntexx\Desktop\Script\gamemodes\SGR.pwn(382) : error 021: symbol already defined: "EnablePingWarnAgain"
    C:\Users\syntexx\Desktop\Script\gamemodes\SGR.pwn(388) : error 021: symbol already defined: "AFKOn"
    C:\Users\syntexx\Desktop\Script\gamemodes\SGR.pwn(405) : error 021: symbol already defined: "SendClientMessageToAdmins"
    C:\Users\syntexx\Desktop\Script\gamemodes\SGR.pwn(417) : error 021: symbol already defined: "FreezePlayer"
    C:\Users\syntexx\Desktop\Script\gamemodes\SGR.pwn(424) : error 021: symbol already defined: "UnFreezePlayer"
    C:\Users\syntexx\Desktop\Script\gamemodes\SGR.pwn(431) : error 021: symbol already defined: "FreezeAll"
    C:\Users\syntexx\Desktop\Script\gamemodes\SGR.pwn(443) : error 021: symbol already defined: "UnFreezeAll"
    C:\Users\syntexx\Desktop\Script\gamemodes\SGR.pwn(455) : error 021: symbol already defined: "GetName"
    C:\Users\syntexx\Desktop\Script\gamemodes\SGR.pwn(462) : error 021: symbol already defined: "GetIP"
    C:\Users\syntexx\Desktop\Script\gamemodes\SGR.pwn(470) : error 021: symbol already defined: "M_Kick"
    C:\Users\syntexx\Desktop\Script\gamemodes\SGR.pwn(475) : error 021: symbol already defined: "KickHim"
    C:\Users\syntexx\Desktop\Script\gamemodes\SGR.pwn(482) : error 021: symbol already defined: "M_Ban"
    C:\Users\syntexx\Desktop\Script\gamemodes\SGR.pwn(487) : error 021: symbol already defined: "BanHim"
    C:\Users\syntexx\Desktop\Script\gamemodes\SGR.pwn(494) : error 021: symbol already defined: "M_BanEx"
    C:\Users\syntexx\Desktop\Script\gamemodes\SGR.pwn(499) : error 021: symbol already defined: "BanHimEx"
    C:\Users\syntexx\Desktop\Script\gamemodes\SGR.pwn(505) : error 021: symbol already defined: "GetVehicleDriver"
    C:\Users\syntexx\Desktop\Script\gamemodes\SGR.pwn(518) : error 021: symbol already defined: "M_WriteIPToBlacklist"
    C:\Users\syntexx\Desktop\Script\gamemodes\SGR.pwn(537) : error 025: function heading differs from prototype
    C:\Users\syntexx\Desktop\Script\gamemodes\SGR.pwn(538) : error 021: symbol already defined: "M_Log"


    Zeilen 306 - 539


    enum SysInfo
    {
    PMoney,
    PWeapon[13],
    PAmmo[13],
    PLastVehicleID,
    PLastInterior,
    PInactiveSeconds,
    PCheckHighPing,
    PHighPingWarns,
    PIPWarns,
    PBadWordWarns,
    PAFK,
    PAFKTimer,
    Float:PHealth,
    Float:PArmour,
    Float:PXpos,
    Float:PYpos,
    Float:PZpos,
    Float:PXpos2,
    Float:PYpos2,
    Float:PZpos2,
    PFrozen,
    PSpawned,
    PCheck
    }


    new M_Bot[MAX_PLAYERS][SysInfo];


    new BanWeaponIDs[] = {
    35,
    36,
    37,
    38,
    39,
    40,
    44,
    45
    };


    new BanClanTags[][] = {
    "[LVG]",
    "[RRG]"
    };


    new BanNames[][] = {
    "Suppennoob"
    };


    new BadWords[][] = {
    "Fuck",
    "Fick",
    "Fresse",
    "Hurensohn",
    "Huso",
    "Wixxer",
    "Wichser",
    "Kanacke",
    "Arsch",
    "Fotze",
    "Missgeburt"
    };


    new Float:GettedHealth,
    Float:GettedArmour,
    AllFrozen,
    MaxPing = 800;



    public EnableChecking(playerid)
    {
    M_Bot[playerid][PCheck] = 1;
    return 1;
    }


    public EnablePingWarnAgain(playerid)
    {
    M_Bot[playerid][PCheckHighPing] = 1;
    return 1;
    }


    public AFKOn(playerid)
    {
    if(IsPlayerConnected(playerid) && AFKKICK[playerid] == 1)
    {
    SendClientMessage(playerid, COLOR_WHITE,"_________________________________________________________________________________");
    SendClientMessage(playerid, COLOR_YELLOW,"[AFK]Das System hat erkannt, das du AFK bist.Du hast 60 Sekunden Zeit deinen Code einzugeben(/notafk)");
    SendClientMessage(playerid, COLOR_WHITE,"_________________________________________________________________________________");
    SetCodeArray(playerid);
    AFKKICK[playerid] = 0;
    M_Bot[playerid][PAFK] = 0;
    SetTimerEx("KickAFK",60000,0,"i",playerid);
    }
    return 1;
    }


    // ====================================================================================================================


    stock SendClientMessageToAdmins(color,message[])
    {
    for(new i = 0; i < GetMaxPlayers(); i++)
    {
    if(IsPlayerConnected(i) && IsAnAdmin(i))
    {
    SendClientMessage(i,color,message);
    }
    }
    }



    stock FreezePlayer(playerid)
    {
    TogglePlayerControllable(playerid,false);
    M_Bot[playerid][PFrozen] = 1;
    }



    stock UnFreezePlayer(playerid)
    {
    TogglePlayerControllable(playerid,true);
    M_Bot[playerid][PFrozen] = 0;
    }



    stock FreezeAll()
    {
    for(new i = 0; i < GetMaxPlayers(); i++)
    {
    if(IsPlayerConnected(i))
    {
    TogglePlayerControllable(i,false);
    AllFrozen = 1;
    }
    }
    }


    stock UnFreezeAll()
    {
    for(new i = 0; i < GetMaxPlayers(); i++)
    {
    if(IsPlayerConnected(i))
    {
    TogglePlayerControllable(i,true);
    AllFrozen = 0;
    }
    }
    }


    stock GetName(playerid)
    {
    new getthename[MAX_PLAYER_NAME];
    GetPlayerName(playerid,getthename,sizeof(getthename));
    return getthename;
    }


    stock GetIP(playerid)
    {
    new gettheip[15];
    GetPlayerIp(playerid,gettheip,sizeof(gettheip));
    return gettheip;
    }



    stock M_Kick(playerid)
    {
    SetTimerEx("KickHim",100,0,"d",playerid);
    }


    public KickHim(playerid)
    {
    Kick(playerid);
    return 1;
    }



    stock M_Ban(playerid)
    {
    SetTimerEx("BanHim",100,0,"d",playerid);
    }


    public BanHim(playerid)
    {
    Ban(playerid);
    return 1;
    }



    stock M_BanEx(playerid,reason[])
    {
    SetTimerEx("BanHimEx",100,0,"ds",playerid,reason);
    }


    public BanHimEx(playerid,reason[])
    {
    BanEx(playerid,reason);
    return 1;
    }


    stock GetVehicleDriver(vehicleid)
    {
    for(new i = 0; i < GetMaxPlayers(); i++)
    {
    if(IsPlayerConnected(i) && GetPlayerState(i) == PLAYER_STATE_DRIVER && GetPlayerVehicleID(i) == vehicleid)
    {
    return i;
    }
    }
    return -1;
    }



    stock M_WriteIPToBlacklist(ip[])
    {
    new File:BLACKLISTFILE;
    if(!fexist("/MBot/M_Black.cfg"))
    {
    BLACKLISTFILE = fopen("/MBot/M_Black.cfg",io_write);
    }
    else
    {
    BLACKLISTFILE = fopen("/MBot/M_Black.cfg",io_append);
    }
    if(BLACKLISTFILE)
    {
    new M_Bot_String[20];
    format(M_Bot_String,sizeof(M_Bot_String),"%s\n",ip);
    fwrite(BLACKLISTFILE,M_Bot_String);
    }
    fclose(BLACKLISTFILE);
    }


    stock M_Log(M_Bot_String[])
    {
    new File:logfile, mhour, mminute, msecond, myear, mmonth, mday;