Achat de Véhicule

Bonjour,

j’ai rajouté des véhicules moddé sur mon serveur mais maintenant dès que je vais dans les shops rien ne s’affiche…

Voici mon ficheir VehicleList.cfg

#include <macro.h>

/*
File:
Author: Bryan “Tonic” Boardwine

Description:
Master configuration list / array for buyable vehicles & prices and their shop.
*/
private["_shop","_return"];
_shop = [_this,0,"",[""]] call BIS_fnc_param;
if(_shop == “”) exitWith {[]};
_return = [];
switch (_shop) do
{
case “kart_shop”:
{
_return = [
[“C_Kart_01_Blu_F”,15000],
[“C_Kart_01_Fuel_F”,15000],
[“C_Kart_01_Red_F”,15000],
[“C_Kart_01_Vrana_F”,15000]
];
};
case “med_shop”:
{
_return = [
[“C_Offroad_01_F”,10000],
[“I_Truck_02_medical_F”,25000],
[“O_Truck_03_medical_F”,45000],
[“B_Truck_01_medical_F”,60000]
];
};

case “med_air_hs”: {
_return = [
[“B_Heli_Light_01_F”,50000],
[“O_Heli_Light_02_unarmed_F”,75000]
];
};

case “civ_car”:
{
_return =
[
[“B_Quadbike_01_F”,2500],
[“C_Hatchback_01_F”,9500],
[“C_Offroad_01_F”,12500],
[“C_SUV_01_F”,35000],
[“C_Van_01_transport_F”,40000],
[“Orel_Quad”,1000],
[“DAR_ImpalaCiv”,20000],
[“DAR_ImpalaCivA”,10000],
[“DAR_ImpalaCivB”,25000],
[“DAR_ImpalaCivC”,30000],
[“DAR_ImpalaCivD”,12000],
[“DAR_ImpalaCivE”,50000],
[“DAR_ImpalaCivF”,78500],
[“DAR_ImpalaCivG”,15000],
[“DAR_FusionCiv”,15500],
[“DAR_FusionCivRed”,10545],
[“DAR_FusionCivBlack”,10000],
[“DAR_FusionCivBlue”,10000],
[“DAR_TahoeCiv”,30000],
[“DAR_TahoeCivRed”,30000],
[“DAR_TahoeCivBlue”,30000],
[“DAR_TahoeCivSilver”,30000],
[“DAR_TahoeCivBlack”,30000],
[“DAR_TaurusCiv”,30000],
[“DAR_TaurusCivBlue”,30000],
[“DAR_TaurusCivBlack”,30000],
[“SAL_IROCCiv”,55000],
[“SAL_IROCCivSilver”,55000],
[“SAL_IROCCivBlack”,25000],
[“SAL_IROCCivBlue”,25000],
[“SAL_IROCCivRed”,25000],
[“Jonzie_96_Impala”,25000],
[“DAR_ChallengerCivBlack”,25000],
[“SAL_AudiCivBlack”,25000],
[“A3L_ChargerBlack”,25000],
[“A3L_ChargerCstm”,25000],
[“Orel_Agora”,70000],
[“DAR_M3CivBlack”,250000],
[“A3L_PuntoBlue”,7000],
[“A3L_PuntoBlack”,9000],
[“DAR_MF1Burgundy”,1000000],
[“cl3_dbs_volante_white”,700000],
[“cl3_r8_spyder_navy_blue”,400000],
[“cl3_reventon_black”,1900000],
[“cl3_veyron_black”,1900000],
[“cl3_veyron_lblue_lblue”,1900000],
[“cl3_458_yellow”,2000000],
[“cl3_z4_2008_babyblue”,600000],
[“cl3_carrera_gt_white”,900000],
[“cl3_range_rover_aqua”,25000]
];
};

case “civ_truck”:
{
_return =
[
[“C_Van_01_box_F”,60000],
[“I_Truck_02_transport_F”,75000],
[“I_Truck_02_covered_F”,100000],
[“B_Truck_01_transport_F”,275000],
[“O_Truck_03_transport_F”,200000],
[“O_Truck_03_covered_F”,250000],
[“B_Truck_01_box_F”,350000],
[“O_Truck_03_device_F”,450000],
[“A3L_Dumptruck”,500000]
];
};

case “reb_car”:
{
_return =
[
[“B_Quadbike_01_F”,2500],
[“B_G_Offroad_01_F”,15000],
[“O_MRAP_02_F”,150000],
[“B_Heli_Light_01_F”,325000]
];

if(license_civ_rebel) then
{
_return pushBack
[“B_G_Offroad_01_armed_F”,750000];
};
};

case “cop_car”:
{
_return set[count _return,
[“DAR_ImpalaPolice”,0]];
_return set[count _return,
[“DAR_CVPIAux”,0]];
_return set[count _return,
[“DAR_TahoePolice”,0]];
_return set[count _return,
[“DAR_ChargerPolice”,0]];
};

if(GETC(life_coplevel) > 2) then
{
_return set[count _return,
[“DAR_TaurusPolice”,0]];
_return set[count _return,
[“DAR_ExplorerPolice”,0]];
};

if(GETC(life_coplevel) > 3) then
{
_return set[count _return,
[“DAR_SWATPolice”,0]];
_return set[count _return,
[“DAR_TahoePoliceDet”,0]];
};
};

case “civ_air”:
{
_return =
[
[“B_Heli_Light_01_F”,253000],
[“O_Heli_Light_02_unarmed_F”,750000]
];
};

case “cop_air”:
{
_return pushBack
[“B_Heli_Light_01_F”,75000];
if(GETC(life_coplevel) > 2) then
{
_return pushBack
[“B_Heli_Transport_01_F”,200000];
};
};

case “cop_airhq”:
{
_return pushBack
[“B_Heli_Light_01_F”,75000];
if(GETC(life_coplevel) > 2) then
{
_return pushBack
[“B_Heli_Transport_01_F”,200000];
_return pushBack
[“B_MRAP_01_hmg_F”,750000];
};
};

case “civ_ship”:
{
_return =
[
[“C_Rubberboat”,5000],
[“C_Boat_Civil_01_F”,22000]
];
};

case “cop_ship”:
{
_return =
[
[“B_Boat_Transport_01_F”,3000],
[“C_Boat_Civil_01_police_F”,20000],
[“B_Boat_Armed_01_minigun_F”,75000],
[“B_SDV_01_F”,100000]
];
};
};

_return;

Merci d’avance :wink: !

Quand tu dis rien ne s’affiche, il n’y a aucun véhicule ou seulement ceux de base ?

Aircoifft Aucun véhicule n’est affiché même pas ceux de base.

Moi c’est fini j’aide plus les mec qui se donnent pas la peine de donner leurs logs. L’erreur est forcément dedans pourquoi perdre du temps à la chercher nous-même ?

ha ok , e cherche et te recontacte

Yo " je pence avoir trouvé !

Remplace

_return set[count _return,

[“DAR_ChargerPolice”,0]];

};

Par

_return set[count _return,

[“DAR_ChargerPolice”,0]];

};

Sinon envoie moi ton fichier ce sera plus facile

Joker Je suis assez d’accord avec toi, mais dans un fichier basique comme celui-ci je trouve que c’est un bonne entraînement pour apprendre a codé et a voir les problème a l’œil.

Joker de min point de vue biensure :wink: