Beiträge von derkleineplayerlol

    hie habe die warnings
    G:\gta sa server\gamemodes\loH.pwn(5219) : warning 215: expression has no effect
    G:\gta sa server\gamemodes\loH.pwn(18488) : warning 202: number of arguments does not match definition
    G:\gta sa server\gamemodes\loH.pwn(18488) : warning 202: number of arguments does not match definition
    G:\gta sa server\gamemodes\loH.pwn(18488) : warning 202: number of arguments does not match definition
    G:\gta sa server\gamemodes\loH.pwn(18488) : warning 202: number of arguments does not match definition
    G:\gta sa server\gamemodes\loH.pwn(18488) : warning 202: number of arguments does not match definition
    G:\gta sa server\gamemodes\loH.pwn(18488) : warning 202: number of arguments does not match definition
    G:\gta sa server\gamemodes\loH.pwn(18488) : warning 202: number of arguments does not match definition
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


    Header size: 10340 bytes
    Code size: 1975712 bytes
    Data size: 3268368 bytes
    Stack/heap size: 16384 bytes; estimated max. usage: unknown, due to recursion
    Total requirements: 5270804 bytes


    8 Warnings.

    Hier die Zeilen
    if(!IsPlayerInRangeOfPoint(playerid,124,2316.6201,-7.0756,26.7422,247.0570,0,0,0,0,0,0))

    HI wenn ich ingame /rob mache steht du bist nciht am tresor
    wo is der fehler?
    hier die zeilen
    //==================================BANKÜBERFALL================================
    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;
    }

    Wie füge ich diesen neon script als filterscript ein


    #include <Neon>


    new bool:NeonLightToggle[MAX_PLAYERS];


    if(strcmp(strget(cmdtext,0), "/neon", true) == 0)
    {
    if(NeonLightToggle[playerid] == true)
    {
    ToggleVehicleNeon(GetPlayerVehicleID(playerid),0,false);
    NeonLightToggle[playerid] = false;
    }else{
    if(!strlen(strget(cmdtext,1)))
    {
    SendClientMessage(playerid, COLOR_RED, "Benutze: /neon [NEONID]");
    SendClientMessage(playerid, COLOR_RED, "0 - red");
    SendClientMessage(playerid, COLOR_RED, "1 - blue");
    SendClientMessage(playerid, COLOR_RED, "2 - green");
    SendClientMessage(playerid, COLOR_RED, "3 - yellow");
    SendClientMessage(playerid, COLOR_RED, "4 - pink");
    SendClientMessage(playerid, COLOR_RED, "5 - white");
    }else{
    new neonid = strval(strget(cmdtext,1));
    ToggleVehicleNeon(GetPlayerVehicleID(playerid),neonid,true);
    NeonLightToggle[playerid] = true;
    }
    }
    return 1;
    }

    stock GivePlayerWeapons(playerid) { switch(PlayerInfo[playerid][pLeader]) { case 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); } } switch(PlayerInfo[playerid][pMember]) { case 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; }





    wie würde das aussehen wenn ich mehre fraks reinmacen möchte?

    dann kommen 6 errors


    die sehen so aus


    G:\gta sa server\gamemodes\loH.pwn(43410) : error 075: input line too long (after substitutions)
    G:\gta sa server\gamemodes\loH.pwn(43410 -- 43411) : error 029: invalid expression, assumed zero
    G:\gta sa server\gamemodes\loH.pwn(43409) : error 021: symbol already defined: "M_GivePlayerWeapon"
    G:\gta sa server\gamemodes\loH.pwn(43409 -- 43414) : fatal error 107: too many error messages on one line
    Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


    4 Errors.


    /edit

    so richtig ?


    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;
    }