Beiträge von derkleineplayerlol

    On PlayerSpawn sieht so aus



    public OnPlayerSpawn(playerid)
    {
    M_OnPlayerSpawn(playerid);
    TextDrawShowForPlayer(playerid,Copyright);
    TextDrawShowForPlayer(playerid,ModeName);
    SetPlayerToTeamColor(playerid);
    TextDrawShowForPlayer(playerid, Time), TextDrawShowForPlayer(playerid, Date);
    //InitLockDoors(playerid);
    STDPlayer[playerid] = 0;
    OnDuty[playerid] = 0;
    GivePlayerWeapons(playerid);
    SetPlayerArmour(playerid,0);
    gTeam[playerid] = PlayerInfo[playerid][pTeam]; //Set the Team
    if (gTeam[playerid] == 4) //medic / criminal reset team
    {
    gTeam[playerid] = 3;
    }



    und das andere so


    stock GivePlayerWeapons(playerid)
    {
    if (PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)
    if (PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)
    if (PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7)
    if (PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13)
    if (PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)
    if (PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15)
    if (PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16)
    if (PlayerInfo[playerid][pMember] == 17 || PlayerInfo[playerid][pLeader] == 17)
    if (PlayerInfo[playerid][pMember] == 18 || PlayerInfo[playerid][pLeader] == 18)
    if (PlayerInfo[playerid][pMember] == 19 || PlayerInfo[playerid][pLeader] == 19)
    if (PlayerInfo[playerid][pMember] == 20 || PlayerInfo[playerid][pLeader] == 20)
    {
    GivePlayerWeapon(playerid,3,1);
    GivePlayerWeapon(playerid,29,900);
    GivePlayerWeapon(playerid,31,900);
    GivePlayerWeapon(playerid,41,900);
    GivePlayerWeapon(playerid,22,900);
    SetPlayerArmour(playerid,100.0);
    }
    return 1;
    }


    ist das richtig?

    diese warnings bekomme ich net weg


    G:\gta sa server\gamemodes\loH.pwn(5217) : warning 217: loose indentation
    G:\gta sa server\gamemodes\loH.pwn(43302) : warning 217: loose indentation
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
    Header size: 10340 bytes
    Code size: 1926128 bytes
    Data size: 3268312 bytes
    Stack/heap size: 16384 bytes; estimated max. usage: unknown, due to recursion
    Total requirements: 5221164 bytes
    2 Warnings.


    else if(PlayerInfo[playerid][pOrigin] == 2)
    {
    SendClientMessage(playerid, COLOR_LIGHTRED, "Durch deine schweren Verletzungnen liegst du im Koma");
    TogglePlayerControllable(playerid, 0);
    ResetPlayerWeapons(playerid);
    SetPlayerPos(playerid,-2643.6621,649.1603,30.7397);
    SetPlayerCameraPos(playerid, -2540.6643,572.2766,35.4433);
    SetPlayerCameraLookAt(playerid, -2603.6860,668.1278,57.2057);
    SetPlayerInterior(playerid, 0);
    }
    return 1;
    }
    new mafid = GetPlayerMafia(playerid);
    if(mafid==1||mafid==2||mafid==3||mafid==4||mafid==5||mafid==6)
    {
    GangZoneShowForPlayer(playerid, grove, 16711888);
    GangZoneShowForPlayer(playerid, ballas, -2147418167);
    GangZoneShowForPlayer(playerid, rifa, 199);
    GangZoneShowForPlayer(playerid, yaku, 1538909898);
    GangZoneShowForPlayer(playerid, lcn, -8388424);
    }



    return 1;
    }

    und wie einrücken =?
    public OnPlayerSpawn(playerid)
    {
    M_OnPlayerSpawn(playerid);
    TextDrawShowForPlayer(playerid,Copyright);
    TextDrawShowForPlayer(playerid,ModeName);
    SetPlayerToTeamColor(playerid);
    TextDrawShowForPlayer(playerid, Time), TextDrawShowForPlayer(playerid, Date);
    //InitLockDoors(playerid);
    STDPlayer[playerid] = 0;
    OnDuty[playerid] = 0;
    SetPlayerArmour(playerid,0);
    gTeam[playerid] = PlayerInfo[playerid][pTeam]; //Set the Team
    if (gTeam[playerid] == 4) //medic / criminal reset team
    {
    gTeam[playerid] = 3;
    }
    if(gPlayerLogged[playerid] == 0)
    {
    SendClientMessage(playerid, COLOR_LIGHTRED, "** Du musst dich voher einloggen oder dir einen Account erstellen! ***");
    Kick(playerid);
    return 1;
    }
    if(AtClothes[playerid] == 1)
    {
    PlayerInfo[playerid][pChar] = GetPlayerSkin(playerid);
    PlayerInfo[playerid][pModel] = GetPlayerSkin(playerid);
    AtClothes[playerid] = 0;
    }
    if(PlayerInfo[playerid][pTot] == 1 && FirstSpawn[playerid] == 0)
    {
    if(PlayerInfo[playerid][pOrigin] == 1)
    {

    Habe ein problem


    bekomme die warnings nicht weg




    G:\gta sa server\gamemodes\loH.pwn(5176) : warning 217: loose indentation
    G:\gta sa server\gamemodes\loH.pwn(5183) : warning 217: loose indentation


    Hier die Zeilen


    if(gPlayerLogged[playerid] == 0)


    if(AtClothes[playerid] == 1)

    Hi habe das problem wenn ich das hier


    public OnPlayerCommandText(playerid, cmdtext[])
    {
    if(strcmp(cmdtext, "/Sirene", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pAdmin] >= 2010)
    {
    new sirene;
    sirene = CreateObject(18646, 0, 0, 0, 0, 0, 0, 0);
    AttachObjectToVehicle(sirene, vehicleid, 0-0.5, 0, 0+0.68, 0, 0, 0);
    GameTextForPlayer(playerid,"~r~Sirene Aktiviert",5000, 1);
    return 1;
    }
    else
    {
    SendClientMessage(playerid, COLOR_GREY, "** Du bist kein Polizist");
    }
    }
    return 1;
    }
    return 0;
    }


    unten ins script einfüge kommen 2 errors und 3 warnings




    G:\gta sa server\gamemodes\loH.pwn(5176) : warning 217: loose indentation
    G:\gta sa server\gamemodes\loH.pwn(5183) : warning 217: loose indentation
    G:\gta sa server\gamemodes\loH.pwn(43306) : error 021: symbol already defined: "OnPlayerCommandText"
    G:\gta sa server\gamemodes\loH.pwn(43315) : error 017: undefined symbol "vehicleid"
    G:\gta sa server\gamemodes\loH.pwn(43317) : warning 217: loose indentation
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    2 Errors.

    public OnPlayerSpawn(playerid)
    {
    M_OnPlayerSpawn(playerid);
    TextDrawShowForPlayer(playerid,Copyright);
    TextDrawShowForPlayer(playerid,ModeName);
    SetPlayerToTeamColor(playerid);
    TextDrawShowForPlayer(playerid, Time), TextDrawShowForPlayer(playerid, Date);
    //InitLockDoors(playerid);
    STDPlayer[playerid] = 0;
    OnDuty[playerid] = 0;
    SetPlayerArmour(playerid,0);
    gTeam[playerid] = PlayerInfo[playerid][pTeam]; //Set the Team
    if (gTeam[playerid] == 4) //medic / criminal reset team
    {
    gTeam[playerid] = 3;
    }




    wo muss das jetzt rein ? also GivePlayerWeapons(playerid);

    und wo da hier die zeilen


    public OnPlayerSpawn(playerid)
    {
    M_OnPlayerSpawn(playerid);
    TextDrawShowForPlayer(playerid,Copyright);
    TextDrawShowForPlayer(playerid,ModeName);
    SetPlayerToTeamColor(playerid);
    TextDrawShowForPlayer(playerid, Time), TextDrawShowForPlayer(playerid, Date);
    //InitLockDoors(playerid);
    STDPlayer[playerid] = 0;
    OnDuty[playerid] = 0;
    SetPlayerArmour(playerid,0);
    gTeam[playerid] = PlayerInfo[playerid][pTeam]; //Set the Team
    if (gTeam[playerid] == 4) //medic / criminal reset team
    {
    gTeam[playerid] = 3;
    }

    jetzt siehts so aus


    die sachen sind trotzdem net drin






    stock GivePlayerWeapons(playerid)
    {
    if (PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5) || PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6 || PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7 || PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13 || || PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14 || || PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15 || || PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16 || || PlayerInfo[playerid][pMember] == 17 || PlayerInfo[playerid][pLeader] == 17 |||| PlayerInfo[playerid][pMember] == 18 || PlayerInfo[playerid][pLeader] == 18 || || PlayerInfo[playerid][pMember] == 19 || PlayerInfo[playerid][pLeader] == 19 || || PlayerInfo[playerid][pMember] == 20 || PlayerInfo[playerid][pLeader] == 20)
    {
    GivePlayerWeapon(playerid,3,1);
    GivePlayerWeapon(playerid,29,900);
    GivePlayerWeapon(playerid,31,900);
    GivePlayerWeapon(playerid,41,900);
    GivePlayerWeapon(playerid,22,900);
    SetPlayerArmour(playerid,100.0);
    }
    return 1;
    }



    wenns falsch is pls einmal richtig mit allen ids posten danke

    Keine Errors ich eghe ingame sind aber net drin



    stock GivePlayerWeapons(playerid)
    {
    if (PlayerInfo[playerid][pMember] == 5,6,7,13,14,15,16,17,18,19,20 || PlayerInfo[playerid][pLeader] == 5,6,7,13,14,15,16,17,18,19,20)
    {
    GivePlayerWeapon(playerid,3,1);
    GivePlayerWeapon(playerid,29,900);
    GivePlayerWeapon(playerid,31,900);
    GivePlayerWeapon(playerid,41,900);
    GivePlayerWeapon(playerid,22,900);
    SetPlayerArmour(playerid,100.0);
    }
    return 1;
    }

    dann kommt das


    G:\gta sa server\gamemodes\loH.pwn(43309) : error 030: compound statement not closed at the end of file (started at line 43293)
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    1 Error.

    dann kommt das



    G:\gta sa server\gamemodes\loH.pwn(43290) : warning 235: public function lacks forward declaration (symbol "GivePlayerWeapons")
    G:\gta sa server\gamemodes\loH.pwn(43308) : error 030: compound statement not closed at the end of file (started at line 43292)
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    1 Error.

    HI habe rov problem da steht immer du bist nicht am tresor obwohl ich da bin hier die zeilen



    if(strcmp(cmd, "/rob", true) == 0)
    {
    if(!IsPlayerInRangeOfPoint(playerid,3.0,1424.4016,-1002.9427,1639.7843))
    {
    SendClientMessage(playerid,0xAA3333AA,"Du bist nicht am Tresor in der Bank!");
    return 1;
    }
    if(rob)
    {
    SendClientMessage(playerid,0xAA3333AA,"Die Bank wurde gerade erst überfallen!");
    return 1;
    }
    //FreezePlayer(playerid);
    rob = 1;
    SetTimer("Rob_Reset",1800000,0); // Nach 30 Minuten erst wieder ausrauben
    SetTimerEx("Rob_UnFreeze",120000,0,"i",playerid); // Nach 2 minuten Bank überfallen
    OnPlayerCommandText(playerid,"/S Hände hoch das ist ein Überfall!!!");
    SendClientMessage(playerid,0xFF9933FF,"Du willst die Bank überfallen und musst warten bis das Geld eingepackt ist!");
    SendClientMessage(playerid,0xFF9933FF,"Verlasse vorher nicht die Bank!");
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i))
    {
    if(IsACop(i))
    {
    SendClientMessage(i,TEAM_BLUE_COLOR,"HQ: Achtung Alle Einheiten! Eine Meldung vom Bank Security System!");
    SendClientMessage(i,TEAM_BLUE_COLOR,"HQ: Verbrechen: Banküberfall, Gesuchter: Unbekannt");
    SendClientMessage(i,TEAM_BLUE_COLOR,"HQ: Begeben sie sich sofort zur Los Santos Bank!");
    }
    }
    }
    return 1;
    }

    i habe das problem wenn cop /tazer iengibt kommt der andere is beamter obwohl er es nciht is hier die zeilen


    if(strcmp(cmd, "/tazer", true) ==0)
    {
    if(IsPlayerConnected(playerid))
    {
    if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3|| PlayerInfo[playerid][pMember] == 21 || PlayerInfo[playerid][pLeader] == 21)
    {
    if(OnDuty[playerid]==0)
    {
    SendClientMessage(playerid, COLOR_GREY, "Du bist nicht im Dienst!");
    return 1;
    }
    if(IsPlayerInAnyVehicle(playerid))
    {
    SendClientMessage(playerid, COLOR_GREY, "Du kannst das nicht benutzen während du im Fahrzeug sitzt!");
    return 1;
    }
    new suspect = GetClosestPlayer(playerid);
    if(IsPlayerConnected(suspect))
    {
    if(PlayerCuffed[suspect] > 0)
    {
    SendClientMessage(playerid, COLOR_GREY, "Dieser Spieler ist schon getazed!");
    return 1;
    }
    if(GetDistanceBetweenPlayers(playerid,suspect) < 5)
    {
    if(OnDuty[playerid]==1)
    {
    SendClientMessage(playerid, COLOR_GREY, "Du kannst keinen Beamten Tazern!");
    return 1;
    }
    if(IsPlayerInAnyVehicle(suspect))
    {
    SendClientMessage(playerid, COLOR_GREY, "Dieser Spieler ist in einem Fahrzeug! Bringe in zuerst raus!");
    return 1;
    }
    GetPlayerName(suspect, giveplayer, sizeof(giveplayer));
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string), "* Du wurdest von %s mit seinem Elektroschocker geschockt.", sendername);
    SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
    format(string, sizeof(string), "* Du hast %s niedergestreckt.", giveplayer);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
    format(string, sizeof(string), "* %s nimmt seinen Elektroschocker raus und streckt %s nieder.", sendername ,giveplayer);
    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    GameTextForPlayer(suspect, "~y~Geschockt!", 3000, 3);
    TogglePlayerControllable(suspect, 0);
    PlayerCuffed[suspect] = 1;
    PlayerCuffedTime[suspect] = 8;
    }
    else
    {
    SendClientMessage(playerid, COLOR_GREY, "Niemand ist in deiner Nähe!");
    return 1;
    }
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_GREY, "Du bist kein Beamter!");
    }
    }
    return 1;
    }