Problème ajout d'armes


#1

Bonjour j’ai souhaité apporté des modifications à mon fichier pour y ajouter des armes mais quand je vais dans le shop de Police je ne vois rien d’afficher pourriez-vous m’aider SVP

Voici mon fichier:

#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): {"You are not cop"};  

        default  

        {  

            ["Altis Cop Shop",  

                [  

                    ["arifle_sdar_F",nil,1],  

                    ["hgun_P07_F",nil,1],  

                    ["16Rnd_9x21_Mag",nil,0],  

                    ["20Rnd_556x45_UW_mag",nil,1]  

                    ["muzzle_snds_L",nil,1],                          

                    ["Binocular",nil,1],  

                    ["Rangefinder",nil,1],  

                    ["ItemGPS",nil,1],  

                    ["ToolKit",nil,1],  

                    ["FirstAidKit",nil,1],  

                    ["Medikit",nil,1],  

                    ["NVGoggles",nil,1]  

                ]  

            ];  

        };  

    };  

};  

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_gendarme":  

{  

    switch(true) do  

    {  

        case (playerSide != west): {"You are not a cop!"};  

        case (__GETC__(life_coplevel) < 2): {"You are not at a patrol officer rank!"};  

        default  

        {  

            ["Altis Patrol Officer Shop",  

                [  

                    ["SMG_02_ACO_F",nil,0],  

                    ["HandGrenade_Stone","Flashbang",0],  

                    ["MineDetector",nil,0],  

                    ["acc_flashlight",nil,0],  

                    ["optic_Holosight",nil,0],  

                    ["optic_Arco",nil,0],  

                    ["muzzle_snds_H",nil,2750],  

                    ["30Rnd_65x39_caseless_mag",nil,0],  

                    ["30Rnd_9x21_Mag",nil,0]  

                ]  

            ];  

        };  

    };  

};  

case "cop_adjudant":  

{  

    switch(true) do  

    {  

        case (playerSide != west): {"You are not a cop!"};  

        case (__GETC__(life_coplevel) < 3): {"You are not at a sergeant rank!"};  

        default  

        {  

            ["Altis Sergeant Officer Shop",  

                [  

                    ["SMG_02_ACO_F",nil,15000],  

                    ["hgun_ACPC2_F",nil,17500],  

                    ["HandGrenade_Stone","Flashbang",1700],  

                    ["arifle_MX_Black_F",nil,2500],  

                    ["optic_Arco",nil,2500],  

                    ["muzzle_snds_H",nil,2750],  

                    ["30Rnd_65x39_caseless_mag",nil,100],  

                    ["30Rnd_9x21_Mag",nil,60],  

                    ["9Rnd_45ACP_Mag",nil,200]  

                ]  

            ];  

        };  

    };  

};  

case "cop_major":  

{  

    switch(true) do  

    {  

        case (playerSide != west): {"You are not a cop!"};  

        case (__GETC__(life_coplevel) < 4): {"You are not at a sergeant rank!"};  

        default  

        {  

            ["Altis Sergeant Officer Shop",  

                [  

                    ["SMG_02_ACO_F",nil,15000],  

                    ["hgun_ACPC2_F",nil,17500],  

                    ["HandGrenade_Stone","Flashbang",1700],  

                    ["arifle_MXC_F",nil,30000],  

                    ["arifle_MXC_Black_F",nil,30000],  

                    ["optic_Arco",nil,2500],  

                    ["muzzle_snds_H",nil,2750],  

                    ["30Rnd_65x39_caseless_mag",nil,100],  

                    ["30Rnd_9x21_Mag",nil,60],  

                    ["9Rnd_45ACP_Mag",nil,200]  

                ]  

            ];  

        };  

    };  

};  

case "cop_lieutenant":  

{  

    switch(true) do  

    {  

        case (playerSide != west): {"You are not a cop!"};  

        case (__GETC__(life_coplevel) < 5): {"You are not at a sergeant rank!"};  

        default  

        {  

            ["Altis Sergeant Officer Shop",  

                [  

                    ["SMG_02_ACO_F",nil,15000],  

                    ["hgun_ACPC2_F",nil,17500],  

                    ["HandGrenade_Stone","Flashbang",1700],  

                    ["srifle_EBR_F",nil,30000],  

                    ["20Rnd_762x51_Mag",nil,30000],  

                    ["arifle_MXC_F",nil,30000],  

                    ["optic_Arco",nil,2500],  

                    ["muzzle_snds_H",nil,2750],  

                    ["30Rnd_65x39_caseless_mag",nil,100],  

                    ["30Rnd_9x21_Mag",nil,60],  

                    ["9Rnd_45ACP_Mag",nil,200]  

                ]  

            ];  

        };  

    };  

};  

case "cop_capitaine":  

{  

    switch(true) do  

    {  

        case (playerSide != west): {"You are not a cop!"};  

        case (__GETC__(life_coplevel) < 6): {"You are not at a sergeant rank!"};  

        default  

        {  

            ["Altis Sergeant Officer Shop",  

                [  

                    ["SMG_02_ACO_F",nil,15000],  

                    ["hgun_ACPC2_F",nil,17500],  

                    ["HandGrenade_Stone","Flashbang",1700],  

                    ["arifle_MXC_F",nil,30000],  

                    ["optic_Arco",nil,2500],  

                    ["muzzle_snds_H",nil,2750],  

                    ["30Rnd_65x39_caseless_mag",nil,100],  

                    ["30Rnd_9x21_Mag",nil,60],  

                    ["srifle_GM6_SOS_F",nil,60],  

                    ["5Rnd_127x108_Mag",nil,60],  

                    ["9Rnd_45ACP_Mag",nil,200]  

                ]  

            ];  

        };  

    };  

};  

case "cop_general":  

{  

    switch(true) do  

    {  

        case (playerSide != west): {"You are not a cop!"};  

        case (__GETC__(life_coplevel) < 7): {"You are not at a sergeant rank!"};  

        default  

        {  

            ["Altis Sergeant Officer Shop",  

                [  

                    ["SMG_02_ACO_F",nil,15000],  

                    ["hgun_ACPC2_F",nil,17500],  

                    ["HandGrenade_Stone","Flashbang",1700],  

                    ["arifle_MXC_F",nil,30000],  

                    ["optic_Arco",nil,2500],  

                    ["muzzle_snds_H",nil,2750],  

                    ["30Rnd_65x39_caseless_mag",nil,100],  

                    ["30Rnd_9x21_Mag",nil,60],  

                    ["launch_B_Titan_F",nil,60],  

                    ["Titan_AA",nil,60],  

                    ["LMG_Mk200_F",nil,1000000],  

                    ["200Rnd_65x39_cased_Box",nil,1000],  

                    ["srifle_LRR_SOS_F",nil,1000000],  

                    ["7Rnd_408_Mag",nil,1],  

                    ["9Rnd_45ACP_Mag",nil,200]  

                ]  

            ];  

        };  

    };  

};  

case "cop_gign":  

{  

    switch(true) do  

    {  

        case (playerSide != west): {"You are not a cop!"};  

        case (__GETC__(life_coplevel) < 7): {"You are not at a sergeant rank!"};  

        default  

        {  

            ["Altis Sergeant Officer Shop",  

                [  

                    ["SMG_02_ACO_F",nil,15000],  

                    ["hgun_ACPC2_F",nil,17500],  

                    ["HandGrenade_Stone","Flashbang",1700],  

                    ["arifle_MXC_F",nil,30000],  

                    ["optic_Arco",nil,2500],  

                    ["muzzle_snds_H",nil,2750],  

                    ["30Rnd_65x39_caseless_mag",nil,100],  

                    ["30Rnd_9x21_Mag",nil,60],  

                    ["srifle_LRR_SOS_F",nil,1000000],  

                    ["7Rnd_408_Mag",nil,1],  

                    ["LMG_Mk200_F",nil,1000000],  

                    ["200Rnd_65x39_cased_Box",nil,1000],  

                    ["9Rnd_45ACP_Mag",nil,200]  

                ]  

            ];  

        };  

    };  

};  

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  

        {  

            ["Mohammed's Jihadi Shop",  

                [  

                    ["arifle_TRG20_F",nil,25000],  

                    ["arifle_Katiba_F",nil,30000],  

                    ["srifle_DMR_01_F",nil,50000],  

                    ["arifle_SDAR_F",nil,20000],  

                    ["optic_ACO_grn",nil,3500],  

                    ["optic_Holosight",nil,3600],  

                    ["acc_flashlight",nil,1000],  

                    ["optic_Hamr",nil,7500],  

                    ["30Rnd_9x21_Mag",nil,200],  

                    ["20Rnd_556x45_UW_mag",nil,125],  

                    ["30Rnd_556x45_Stanag",nil,300],  

                    ["10Rnd_762x51_Mag",nil,500],  

                    ["30Rnd_65x39_caseless_green",nil,275]  

                ]  

            ];  

        };  

    };  

};  

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]  

        ]  

    ];  

};  

};


#2
["Altis Cop Shop",  
                    [  
                        ["arifle_sdar_F",nil,1],  
                        ["hgun_P07_F",nil,1],  
                        ["16Rnd_9x21_Mag",nil,0],  
                        ["20Rnd_556x45_UW_mag",nil,1] // ici il manque une virgule  
                        ["muzzle_snds_L",nil,1],                          
                        ["Binocular",nil,1],  
                        ["Rangefinder",nil,1],  
                        ["ItemGPS",nil,1],  
                        ["ToolKit",nil,1],  
                        ["FirstAidKit",nil,1],  
                        ["Medikit",nil,1],  
                        ["NVGoggles",nil,1]  
                    ]  
                ];  

#3

Bryan à raison

Manque virgule