Beiträge von Ily1921

    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;

    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;

    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;

    Guten Tag zusammen ;)
    Wenn ich in Pawn Quelltext schreibe und Enter drücke bzw. eine neue Zeile anfange und ich
    auf Absenden drücke zeigt er alles in einer Zeile an. :S

    Guten Abend
    Wenn ich in Pawn Quelltext schreibe und Enter drücke bzw. eine neue Zeile anfange und ich
    auf Absenden drücke zeigt er alles in einer Zeile an. :S


    Warum ?

    C:\Users\syntexx\Desktop\Script\gamemodes\SGR.pwn(22691) : error 079: inconsistent return types (array & non-array)
    C:\Users\syntexx\Desktop\Script\gamemodes\SGR.pwn(22696) : error 079: inconsistent return types (array & non-array)
    C:\Users\syntexx\Desktop\Script\gamemodes\SGR.pwn(22701) : error 079: inconsistent return types (array & non-array)
    C:\Users\syntexx\Desktop\Script\gamemodes\SGR.pwn(22710) : error 079: inconsistent return types (array & non-array)
    C:\Users\syntexx\Desktop\Script\gamemodes\SGR.pwn(22734) : error 079: inconsistent return types (array & non-array)
    C:\Users\syntexx\Desktop\Script\gamemodes\SGR.pwn(22755) : error 079: inconsistent return types (array & non-array)
    C:\Users\syntexx\Desktop\Script\gamemodes\SGR.pwn(22757) : error 079: inconsistent return types (array & non-array)
    C:\Users\syntexx\Desktop\Script\gamemodes\SGR.pwn(22797) : error 079: inconsistent return types (array & non-array)
    C:\Users\syntexx\Desktop\Script\gamemodes\SGR.pwn(22859) : error 079: inconsistent return types (array & non-array)
    C:\Users\syntexx\Desktop\Script\gamemodes\SGR.pwn(22882) : error 079: inconsistent return types (array & non-array)
    C:\Users\syntexx\Desktop\Script\gamemodes\SGR.pwn(22884) : error 079: inconsistent return types (array & non-array)
    C:\Users\syntexx\Desktop\Script\gamemodes\SGR.pwn(22904) : error 079: inconsistent return types (array & non-array)
    C:\Users\syntexx\Desktop\Script\gamemodes\SGR.pwn(22906) : error 079: inconsistent return types (array & non-array)
    C:\Users\syntexx\Desktop\Script\gamemodes\SGR.pwn(22913) : error 079: inconsistent return types (array & non-array)
    C:\Users\syntexx\Desktop\Script\gamemodes\SGR.pwn(22918) : error 079: inconsistent return types (array & non-array)
    C:\Users\syntexx\Desktop\Script\gamemodes\SGR.pwn(22923) : error 079: inconsistent return types (array & non-array)
    C:\Users\syntexx\Desktop\Script\gamemodes\SGR.pwn(22934) : error 079: inconsistent return types (array & non-array)
    C:\Users\syntexx\Desktop\Script\gamemodes\SGR.pwn(22940) : error 079: inconsistent return types (array & non-array)
    C:\Users\syntexx\Desktop\Script\gamemodes\SGR.pwn(22958) : error 079: inconsistent return types (array & non-array)
    C:\Users\syntexx\Desktop\Script\gamemodes\SGR.pwn(22970) : error 079: inconsistent return types (array & non-array)
    C:\Users\syntexx\Desktop\Script\gamemodes\SGR.pwn(22980) : error 079: inconsistent return types (array & non-array)
    C:\Users\syntexx\Desktop\Script\gamemodes\SGR.pwn(22986) : error 079: inconsistent return types (array & non-array)
    C:\Users\syntexx\Desktop\Script\gamemodes\SGR.pwn(22992) : error 079: inconsistent return types (array & non-array)
    C:\Users\syntexx\Desktop\Script\gamemodes\SGR.pwn(22998) : error 079: inconsistent return types (array & non-array)
    C:\Users\syntexx\Desktop\Script\gamemodes\SGR.pwn(23004) : error 079: inconsistent return types (array & non-array)
    C:\Users\syntexx\Desktop\Script\gamemodes\SGR.pwn(23010) : error 079: inconsistent return types (array & non-array)


    Zeilen 22998 - 23010



    return 1;
    }
    tmp = strtok(cmdtext,idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid,COLOR_WHITE," /knast [knastid 1-3] [playerid] [zeit(in Minuten)] [grund]");
    return 1;
    }
    new zeit = strval(tmp);
    if(zeit < 1 || zeit > 120)
    {
    SendClientMessage(playerid,COLOR_WHITE," Zeit nur zwischen 1 und 120 Minuten!");
    return 1;
    }




    Pawn Quelltext:


    return 1; } tmp = strtok(cmdtext,idx); if(!strlen(tmp)) { SendClientMessage(playerid,COLOR_WHITE," /knast [knastid 1-3] [playerid] [zeit(in Minuten)] [grund]"); return 1; } new zeit = strval(tmp); if(zeit < 1 || zeit > 120) { SendClientMessage(playerid,COLOR_WHITE," Zeit nur zwischen 1 und 120 Minuten!"); return 1; }

    error 036: empty statement
    error 029: invalid expression, assumed zero
    warning 217: loose indentation
    Zeilen 156 - 171




    new i;
    if(strlen(params))
    {
    i = strval(params);
    if(IsPlayerConnected(i));
    {
    SetPlayerHealth(i,100.0);
    SendClientMessage(i,GRUEN,"Du wurdest geheilt");
    SendClientMessage(playerid,BLAU,"Du hast den Spieler erfolgreich geheilt");
    }
    else
    {
    SendClientMessage(playerid,ROT,"Der Spieler wurde nicht gefunden");
    }
    }
    return 1;
    }

    C:\Users\syntexx\Desktop\pawno\gamemodes\Untitled.pwn(41) : warning 213: tag mismatch
    C:\Users\syntexx\Desktop\pawno\gamemodes\Untitled.pwn(41) : warning 213: tag mismatch
    C:\Users\syntexx\Desktop\pawno\gamemodes\Untitled.pwn(41) : warning 202: number of arguments does not match definition




    Zeilen 39 - 41



    waffenp = CreatePickup(1239, 2, 1769.1246,-1901.9116,13.5665, -1);
    BSNein = CreatePickup(1318, 2, 1199.3619,-920.1041,43.1106, -1);
    BSNaus = CreatePickup(362.8988,-75.1954,1001.5078, -1);


    Wo ist mein Fehler >?

    zeile +-10 zeilen pls.

    Okay Danke


    zeile +-10 zeilen pls.


    CreateObject(2780, 1134.5999755859, -747.79998779297, 96.199996948242, 0, 0, 0);
    CreateObject(3267, 1132.3000488281, -748.40002441406, 102.40000152588, 0, 0, 228);
    CreateObject(3267, 1114.1999511719, -749.20001220703, 104.19999694824, 0, 0, 162);
    CreateObject(3461, 1112.8000488281, -743.90002441406, 100.69999694824, 0, 0, 0);
    CreateObject(3461, 1112.6999511719, -740.5, 100.69999694824, 0, 0, 0);
    CreateObject(3461, 1078.6999511719, -766.29998779297, 108.5, 0, 0, 0);
    CreateObject(3461, 1088.5999755859, -765.5, 108.69999694824, 0, 0, 0);
    CreateObject(3524, 1104.5999755859, -723.79998779297, 102.19999694824, 0, 0, 0);
    CreateObject(3528, 1113, -743.90002441406, 105.59999847412, 0, 0, 190);
    return 1;


    //========== HAUS LABELS ===========//
    for(new h = 0; h < sizeof(HouseInfo); h++)
    {
    new string2[128];
    if(HouseInfo[h][hOwned] == 0)
    {
    format(string2, sizeof(string2), "[Haus zu verkaufen - %s]\nPreis: $%d\nLevel: %d\n/buyhouse zum kaufen",HouseInfo[h][hDiscription],HouseInfo[h][hValue],HouseInfo[h][hLevel]);
    HouseInfo[h][Text] = Create3DTextLabel(string2,COLOR_FORSELL,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+1,15.0,0);
    AddStaticPickup(1273, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez], 0);
    pickups++;
    }
    if(HouseInfo[h][hOwned] == 1 && HouseInfo[h][hRentabil] == 0)
    {
    format(string2, sizeof(string2), "[Haus]\nBesitzer: %s\nLevel: %d",HouseInfo[h][hOwner],HouseInfo[h][hLevel]);
    HouseInfo[h][Text] = Create3DTextLabel(string2,COLOR_BUYED,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+1,15.0,0);
    AddStaticPickup(1239, 1, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez], 0);
    pickups++;