• Armes disparues dans les shops cop/rebelle


    Bonjour à tous,

    J’ai donc voulu modifier les armes disponibles dans les vendeurs de l’île dans le fichier “fn_weaponshopCfg.sqf” , j’ai créé des grades pour la police et me suis occupé des magasin rebelles, tout allait nickel. Mais après avoir changé les armes et items disponibles dans les différents grades police, je suis allé en jeu pour voir le fruit de mon travail et maintenant que ce soit côté police ou rebelle, tout à disparu! Le magasin est vide et je ne vois pas mon erreur! Voilà le contenu de mon fichier pour voir si vous voyez mon erreur:

    #include <macro.h>
    /*
    File: fn_weaponShopCfg.sqf
    Author: Bryan “Tonic” Boardwine

    Description:
    Master configuration file for the weapon shops.

    Return:
    String: Close the menu
    Array: 
    [Shop Name,
    [ //Array of items to add to the store
    [classname,Custom Name (set nil for default),price]
    ]]
    */
    private["_shop"];
    _shop = [_this,0,"",[""]] call BIS_fnc_param;
    if(_shop == “”) exitWith {closeDialog 0}; //Bad shop type passed.

    switch(_shop) do
    {
    case “cop_basic”:
    {
    switch(true) do
    {
    case (playerSide != west): {“Vous n’etes pas un flic!”};
    default
    {
    [“Altis Cop Shop”,
    [
    [“arifle_sdar_F”,“Taser Rifle”,20000],
    [“hgun_P07_snds_F”,“Stun Pistol”,2000],
    [“Binocular”,nil,150],
    [“ItemGPS”,nil,100],
    [“ToolKit”,nil,250],
    [“muzzle_snds_L”,nil,650],
    [“FirstAidKit”,nil,150],
    [“16Rnd_9x21_Mag”,nil,50],
    [“20Rnd_556x45_UW_mag”,“Taser Rifle Magazine”,125],
    [“SmokeShellGreen”,“Gaz Lacrimo”,100],
                            [“optic_Arco”,nil,1500],
    [“optic_Holosight”,nil,1500],
    [“optic_MRCO”,nil,1500],
    [“optic_NVS”,nil,1500],
    [“optic_DMS”,nil,1500],
    [“optic_SOS”,nil,1500],
    [“optic_Hamr”,nil,1500],
    [“optic_Aco”,nil,1500]
    ]
    ];
    };
    };
    };

    case “med_basic”:
    {
    switch (true) do 
    {
    case (playerSide != independent): {“You are not an EMS Medic”};
    default {
    [“Hospital EMS Shop”,
    [
    [“ItemGPS”,nil,100],
    [“Binocular”,nil,150],
    [“ToolKit”,nil,250],
    [“FirstAidKit”,nil,150],
    [“Medikit”,nil,500],
    [“NVGoggles”,nil,1200],
    [“B_FieldPack_ocamo”,nil,3000]
    ]
    ];
    };
    };
    };

    case “cop_recrue”:
    {
    switch(true) do
    {
    case (playerSide != west): {“Vous n’etes pas un flic!”};
    case (GETC(life_coplevel) < 1): {“Vous n etes pas au rang recrue!”};
    default
    {
    [“Altis Patrol Officer Shop”,
    [
    [“acc_flashlight”,nil,750],
                            [“SMG_02_F”,nil,15000],
    [“30Rnd_9x21_Mag”,nil,150],
    [“muzzle_snds_L”,nil,2750]
    ]
    ];
    };
    };
    };

    case “cop_brigadier”:
    {
    switch(true) do
    {
    case (playerSide != west): {“Vous n’etes pas un flic!”};
    case (GETC(life_coplevel) < 2): {“Vous n etes pas au rang brigadier!”};
    default
    {
    [“Altis Sergeant Officer Shop”,
    [
    [“SMG_02_F”,nil,15000],
    [“30Rnd_9x21_Mag”,nil,150],
    [“muzzle_snds_L”,nil,2750]
    ]
    ];
    };
    };
    };

    case “cop_sergeant”:
    {
    switch(true) do
    {
    case (playerSide != west): {“Vous n’etes pas un flic!”};
    case (GETC(life_coplevel) < 3): {“Vous n etes pas au rang sergent!”};
    default
    {
    [“Altis Sergeant Officer Shop”,
    [
    [“arifle_Katiba_F”,nil,30000],
    [“30Rnd_65x39_caseless_green”,nil,150],
    [“muzzle_snds_H”,nil,2750]
    ]
    ];
    };
    };
    };

    case “cop_adjudant”:
    {
    switch(true) do
    {
    case (playerSide != west): {“Vous n’etes pas un flic!”};
    case (GETC(life_coplevel) < 4): {“Vous n etes pas au rang adjudant!”};
    default
    {
    [“Altis Sergeant Officer Shop”,
    [
    [“arifle_Katiba_F”,nil,30000],
    [“30Rnd_65x39_caseless_green”,nil,150],
    [“muzzle_snds_H”,nil,2750]
    ]
    ];
    };
    };
    };

    case “cop_lieutenant”:
    {
    switch(true) do
    {
    case (playerSide != west): {“Vous n’etes pas un flic!”};
    case (GETC(life_coplevel) < 5): {“Vous n etes pas au rang lieutenant!”};
    default
    {
    [“Altis Sergeant Officer Shop”,
    [
    [“srifle_EBR_F”,nil,50000],
    [“20Rnd_762x51_Mag”,nil,150],
    [“muzzle_snds_B”,nil,2750]
    ]
    ];
    };
    };
    };

    case “cop_colonel”:
    {
    switch(true) do
    {
    case (playerSide != west): {“Vous n’etes pas un flic!”};
    case (GETC(life_coplevel) < 6): {“Vous n etes pas au rang colonel!”};
    default
    {
    [“Altis Sergeant Officer Shop”,
    [
    [“LMG_Mk200_F”,nil,150000],
    [“200Rnd_65x39_cased_Box”,nil,1000],
    [“muzzle_snds_H_MG”,nil,5000]
    ]
    ];
    };
    };
    };

    case “cop_FSE”:
    {
    switch(true) do
    {
    case (playerSide != west): {“Vous n’etes pas un flic!”};
    case (GETC(life_coplevel) < 7): {“Vous n etes pas au rang Armée!”};
    default
    {
    [“Altis FSE Shop”,
    [
    [“arifle_MXC_Black_F”,nil,15000],
    [“SmokeShellGreen”,“Gaz Lacrimo”,100],
    [“Medikit”,nil,1000],
    [“arifle_MX_Black_F”,nil,15000],
    [“arifle_MX_GL_Black_F”,nil,15000],
    [“arifle_MX_SW_Black_F”,nil,15000],
    [“arifle_MXM_Black_F”,nil,15000],
    [“30Rnd_65x39_caseless_mag”,nil,15000],
    [“HandGrenade_Stone”,“Flashbang”,1700],
    [“SmokeShellGreen”,“Gaz Lacrimo”,100],
    [“30Rnd_65x39_caseless_mag”,nil,15000],
    [“30Rnd_65x39_caseless_mag”,nil,15000],
    [“1Rnd_HE_Grenade_shell”,nil,15000],
    [“1Rnd_Smoke_Grenade_shell”,nil,15000],
    [“3Rnd_HE_Grenade_shell”,nil,15000],
    [“3Rnd_UGL_FlareWhite_F”,nil,15000],
    [“3Rnd_Smoke_Grenade_shell”,nil,15000],
    [“hgun_Pistol_Signal_F”,nil,15000],
    [“6Rnd_GreenSignal_F”,nil,15000],
    [“6Rnd_RedSignal_F”,nil,15000],
    [“100Rnd_65x39_caseless_mag”,nil,15000],
    [“30Rnd_65x39_caseless_mag”,nil,15000],
    [“launch_NLAW_F”,nil,15000],
    [“NLAW_F”,nil,15000],
    [“srifle_LRR_F”,nil,15000],
    [“7Rnd_408_Mag”,nil,15000],
    [“LMG_Mk200_F”,nil,15000],
    [“200Rnd_65x39_cased_Box”,nil,15000],
    [“NVGoggles_OPFOR”,nil,15000],
    [“optic_Nightstalker”,nil,15000],
    [“optic_NVS”,nil,15000],
    [“optic_LRPS”,nil,15000],
    [“optic_MRCO”,nil,15000],
    [“acc_pointer_IR”,nil,15000],
    [“acc_flashlight”,nil,15000],
    [“optic_Hamr”,nil,15000],
    [“optic_Arco”,nil,15000],
    [“muzzle_snds_H_MG”,nil,15000],
    [“optic_Holosight”,nil,15000],
    [“optic_Holosight_smg”,nil,15000],
    [“optic_tws”,nil,15000]
    ]
    ];
    };
    };
    };

    case “rebel”:
    {
    switch(true) do
    {
    case (playerSide != civilian): {“You are not a civilian!”};
    case (!license_civ_rebel): {“You don’t have a Rebel training license!”};
    default
    {
    [“Nikos Shop”,
    [
    [“hgun_ACPC2_F”,nil,5000],
    [“9Rnd_45ACP_Mag”,nil,50],
    [“SMG_01_F”,nil,30000],
    [“30Rnd_45ACP_Mag_SMG_01”,nil,300],
    [“arifle_Mk20_F”,nil,75000],
    [“30Rnd_556x45_Stanag”,nil,500],
    [“srifle_DMR_01_DMS_BI_F”,nil,100000],
    [“10Rnd_762x54_Mag”,nil,500],
    [“LMG_Zafir_F”,nil,175000],
    [“150Rnd_762x54_Box”,nil,1000],
    [“srifle_LRR_camo_F”,nil,220000],
    [“7Rnd_408_Mag”,nil,250],
                            [“srifle_DMR_05_blk_F”,nil,220000],
    [“10Rnd_93x64_DMR_05_Mag”,nil,250],
    [“launch_RPG32_F”,nil,900000],
    [“RPG32_F”,nil,20000],
    [“optic_Arco”,nil,1500],
    [“optic_Holosight”,nil,1500],
    [“optic_MRCO”,nil,1500],
    [“optic_DMS”,nil,1500],
    [“optic_SOS”,nil,1500],
    [“optic_Aco”,nil,1500],
    [“optic_Hamr”,nil,1500],
    [“muzzle_snds_H”,nil,1500],
    [“muzzle_snds_L”,nil,1500],
    [“muzzle_snds_M”,nil,1500],
    [“muzzle_snds_B”,nil,1500],
    [“muzzle_snds_H_MG”,nil,1500],
    [“muzzle_snds_acp”,nil,1500],
    [“bipod_01_F_blk”,nil,500],
                            [“bipod_02_F_hex”,nil,500],
    [“bipod_03_F_oli”,nil,500]
                            [“Binocular”,nil,150],
    [“ItemGPS”,nil,100],
    [“ToolKit”,nil,250],
    [“muzzle_snds_L”,nil,650],
    [“FirstAidKit”,nil,150]
    ]
    ];
    };
    };
    };

    case “gun”:
    {
    switch(true) do
    {
    case (playerSide != civilian): {“You are not a civilian!”};
    case (!license_civ_gun): {“You don’t have a Firearms license!”};
    default
    {
    [“Billy Joe’s Firearms”,
    [
    [“hgun_Rook40_F”,nil,6500],
    [“hgun_Pistol_heavy_02_F”,nil,9850],
    [“hgun_ACPC2_F”,nil,11500],
    [“hgun_PDW2000_F”,nil,20000],
    [“optic_ACO_grn_smg”,nil,2500],
    [“V_Rangemaster_belt”,nil,4900],
    [“16Rnd_9x21_Mag”,nil,25],
    [“9Rnd_45ACP_Mag”,nil,45],
    [“6Rnd_45ACP_Cylinder”,nil,50],
    [“30Rnd_9x21_Mag”,nil,75]
    ]
    ];
    };
    };
    };

    case “gang”:
    {
    switch(true) do
    {
    case (playerSide != civilian): {“You are not a civilian!”};
    default
    {
    [“Hideout Armament”,
    [
    [“hgun_Rook40_F”,nil,1500],
    [“hgun_Pistol_heavy_02_F”,nil,2500],
    [“hgun_ACPC2_F”,nil,4500],
    [“hgun_PDW2000_F”,nil,9500],
    [“optic_ACO_grn_smg”,nil,950],
    [“V_Rangemaster_belt”,nil,1900],
    [“16Rnd_9x21_Mag”,nil,25],
    [“9Rnd_45ACP_Mag”,nil,45],
    [“6Rnd_45ACP_Cylinder”,nil,50],
    [“30Rnd_9x21_Mag”,nil,75]
    ]
    ];
    };
    };
    };

    case “genstore”:
    {
    [“Altis General Store”,
    [
    [“Binocular”,nil,150],
    [“ItemGPS”,nil,100],
    [“ToolKit”,nil,250],
    [“FirstAidKit”,nil,150],
    [“NVGoggles”,nil,2000],
    [“Chemlight_red”,nil,300],
    [“Chemlight_yellow”,nil,300],
    [“Chemlight_green”,nil,300],
    [“Chemlight_blue”,nil,300]
    ]
    ];
    };
    };

    Si quelqu’un aurait la solution ce serait vraiment super car là je ne vois vraiment pas! Merci d’avance =)

  • Problème résolu grâce à Loki’s via le chat =) Merci pour le log.rpt ça va beaucoup m’aider à l’avenir et pour info j’ai oublié une virgule ligne 83 et une virgule ligne 291!

  • @protogun La prochaine fois évite de demander de l’aide dans la shout.

    Merci

  • @prologue art !

    Utilise les bbcodes pour introduire tes scripts !

Messages 4Vues 334