• Problème WeaponShopCFG.sqf


    Bonjour, après avoir utilisé un tuto pour ajouter un shop d’armes plus rien ne s’affiche dans les shop du fichier Weaponshopcfg.sqf. Lorsque l’on clique sur le menu mollette devant le PNJ rien ne s’affiche.

    Voilà le dossier : Weaponshopcfg.sqf

    #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 de la Wehrmacht!"};  
    			default  
    			{  
    				["Arsenal standard de la Wehrmacht",  
    					[  
    						["hgun_Rook40_F",nil,3500],  
    						["16Rnd_9x21_Mag",nil,75],  
    						["Binocular",nil,150],  
    						["ToolKit",nil,250],  
    						["FirstAidKit",nil,150],  
    						["Medikit",nil,1000],  
    						["Trixie_Enfield",nil,7000],  
    						["Trixie_Enfield_Mag",nil,50]  
    					]  
    				];  
    			};  
    		};  
    	};  
    
    	case "med_basic":  
    	{  
    		switch (true) do   
    		{  
    			case (playerSide != independent): {"Vous n'etes pas Docteur"};  
    			default {  
    				["Hospital EMS Shop",  
    					[  
    						["Binocular",nil,150],  
    						["ToolKit",nil,250],  
    						["FirstAidKit",nil,150],  
    						["Medikit",nil,500],  
    						["B_FieldPack_ocamo",nil,428]  
    					]  
    				];  
    			};  
    		};  
    	};  
    
    	case "cop_patrol":  
    	{  
    		switch(true) do  
    		{  
    			case (playerSide != west): {"Vous n'etes pas de la Wehrmacht!"};  
    			case (__GETC__(life_coplevel) < 2): {"Vous n'avez pas le rang requis!"};  
    			default  
    			{  
    				["Arsenal des sous-officiers de la Wehrmacht",  
    					[  
    						["acc_flashlight",nil,750],  
                            ["Trixie_CZ550_Rail",nil,12000],  
    						["Trixie_CZ550",nil,12500],  
                            ["Trixie_CZ550_Mag",nil,300]  
    					]  
    				];  
    			};  
    		};  
    	};  
    
    	case "cop_sergeant":  
    	{  
    		switch(true) do  
    		{  
    			case (playerSide != west): {"Vous n'etes pas de la Wehrmacht!"};  
    			case (__GETC__(life_coplevel) < 3): {"Vous n'avez pas le rang requis!"};  
    			default  
    			{  
    				["Arsenal des Officiers de la Wehrmacht",  
    					[  
    						["Trixie_FNFAL_Rail",nil,30000],  
    						["Trixie_FNFAL_Mag",nil,200],  
    						["hgun_Pistol_heavy_02_F",nil,5500],  
    						["6Rnd_45ACP_Cylinder",nil,100]  
    					]  
    				];  
    			};  
    		};  
    	};  
    
    	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  
    			{  
    				["Maquis resistant",  
    					[  
                            ["hgun_Rook40_F",nil,3500],  
                            ["16Rnd_9x21_Mag",nil,200],  
    						["GG_Weaponpack_M1_Garand",nil,13000],  
    						["GG_M1_Garand_Magazine",nil,100],  
    						["GG_M1_Garand_Magazine_Red",nil,100],  
    						["srifle_DMR_01_F",nil,14000],  
    						["10Rnd_762x54_Mag",nil,100],  
    						["arifle_SDAR_F",nil,15000],  
    						["20Rnd_556x45_UW_mag",nil,200],  
    						["ej_Thompson",nil,27000],  
    						["Thompson_mag",nil,200],  
                            ["WR5_M14_RAIL_C",nil,14500],  
                            ["WR5_M14_WDL_RAIL_C",nil,14500],  
                            ["WR5_M14_DES_RAIL_C",nil,14500],  
                            ["WR5_20Rnd_762x51_Mag",nil,300],  
    						["Trixie_Enfield",nil,16500],  
    						["Trixie_Enfield_Mag",nil,300],  
    						["Trixie_CZ550",nil,32000],  
    						["Trixie_CZ550_Mag",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  
    			{  
    				["Jay l'armurier",  
    					[  
    						["hgun_ACPC2_F",nil,6500],  
    						["9Rnd_45ACP_Mag",nil,250],  
    						["hgun_Rook40_F",nil,5500],  
    						["16Rnd_9x21_Mag",nil,200]  
    					]  
    				];  
    			};  
    		};  
    	};  
    
    	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,50],  
    				["ToolKit",nil,150],  
    				["FirstAidKit",nil,150],  
    				["Chemlight_red",nil,300],  
    				["Chemlight_yellow",nil,300],  
    				["Chemlight_green",nil,300],  
    				["Chemlight_blue",nil,300]  
    			]  
    		];  
    	};  
    
    	case "mafiaweaponshop":   
    	{    
    		switch(true) do  
    		{  
    			case (playerSide != civilian): {"Vous n'êtes pas civils"};  
    			default  
    			{    
    				["Arsenal Mafia",        
    					[          
    						["hgun_mas_sa61_F",nil,4500],          
    						["20Rnd_mas_765x17_Mag",nil,250],          
    						["hgun_Rook40_F",nil,2500],          
    						["16Rnd_9x21_Mag",nil,95],          
    						["hgun_mas_mak_F",nil,2500],         
    						["8Rnd_mas_9x18_Mag",nil,90],          
    						["hgun_ACPC2_F",nil,3000],          
    						["9Rnd_45ACP_Mag",nil,100],          
    						["ej_Thompson",nil,45000],    
    						["Thompson_mag",nil,500],  
    						["muzzle_mas_snds_asval",nil,40000],  
    						["20Rnd_mas_9x39_mag",nil,400],  
    						["rds_uniform_Functionary1",nil,1500],  
    						["rds_uniform_Functionary2",nil,1500],  
    						["rds_uniform_Profiteer1",nil,500],  
    						["rds_uniform_Profiteer2",nil,500],  
    						["rds_uniform_Profiteer3",nil,500],  
    						["rds_uniform_Profiteer4",nil,500],  
    						["H_Hat_brown",nil,50],  
    						["H_Hat_tan",nil,50],  
    						["H_Hat_grey",nil,50],  
    						["H_Hat_checker",nil,50],  
    						["H_StrawHat_dark",nil,50],  
    						["H_StrawHat",nil,50],  
    						["G_Balaclava_blk",nil,200],  
    						["G_Bandanna_aviator",nil,70],  
    						["G_Bandanna_tan",nil,60],  
    						["G_Bandanna_khk",nil,60],  
    						["G_Bandanna_blk",nil,60],  
    						["G_Bandanna_oli",nil,60],  
    						["G_Spectacles",nil,40],  
    						["G_Aviator",nil,40],  
    						["G_Spectacles_Tinted",nil,50]  
    					]  
    				];  
    			};  
    		};  
    	};  
    
    

    J’ai chercher si une virgule ou autre manquait mais je n’ai rien vu. Merci d’avance pour votre aide.

    PS :Je n’arrive pas a envoyer le fichier RPT cela me dit qu’il est trop long avez vous une solution ?

  • Envoie sur hastebin

Messages 3Vues 256