Hallo Zusammen,
wie vielleicht in einem anderen Beitrag mitbekommen, bin ich derzeit daran da was kleines zu basteln. Hierbei nutze ich das HG Simple Shops Script.
Ich habe bis eben gerade alles noch Fehlerfrei am laufen gehabt, nur nachdem ich jetzt gerade die Händler alle mal befüllt habe, hat sich irgendwo ein Fehler eingeschlichen den ich nicht Reproduziert bekomme. Fehler wird beim beitreten auf den Server angezeigt:
File mpmissions/__CUR_MP.Altis/HG/Config/HG_VehiclesShopCfg.h, line 10: Config: "{" encountered instead of ","
Hier die "Original Datei" der HG_VehiclesShopCfg.h:
Code
/*
Author - HoverGuy
© All Rights Reserved
Website - http://www.sunrise-production.com
Defines available vehicle shops
class YourShopClass - Used as a param for the call, basically the shop you want to display
{
conditionToAccess - STRING - Condition that must return either true or false, if true the player will have access to the shop
class YourShopCategory - Shop category, can be whatever you want
{
displayName - STRING - Category display name
vehicles - ARRAY OF ARRAYS - Shop content
|- 0 - STRING - Classname
|- 1 - INTEGER - Price
|- 2 - STRING - Condition that must return either true or false, if true the vehicle appears in the list else no
spawnPoints - ARRAY OF ARRAYS - Spawn positions (markers/positions)
|- 0 - STRING - Display name in the dialog
|- 1 - ARRAY OF MIXED - Markers/positions
};
};
*/
class HG_DefaultShop // HG_DefaultShop is just a placeholder for testing purposes, you can delete it completely and make your own
{
conditionToAccess = "true"; // Example: "(playerSide in [west,independent]) AND ((rank player) isEqualTo 'COLONEL')"
class Civilian
{
displayName = "$STR_HG_SHOP_CIVILIAN";
vehicles[] =
{
{"C_SUV_01_F",15000,"true"}
};
spawnPoints[] =
{
{"$STR_HG_MARKER_1",{"civilian_vehicles_spawn_1"}}
};
};
class Military
{
displayName = "$STR_HG_SHOP_MILITARY";
vehicles[] =
{
{"B_MRAP_01_F",45000,"true"}
};
spawnPoints[] =
{
{"$STR_HG_MARKER_2",{"military_vehicles_spawn_1"}}
};
};
};
Alles anzeigen
Hier "meine Datei" der HG_VehiclesShopCfg.h:
Code
/*
Author - HoverGuy
© All Rights Reserved
Website - http://www.sunrise-production.com
Defines available vehicle shops
class YourShopClass - Used as a param for the call, basically the shop you want to display
{
conditionToAccess - STRING - Condition that must return either true or false, if true the player will have access to the shop
class YourShopCategory - Shop category, can be whatever you want
{
displayName - STRING - Category display name
vehicles - ARRAY OF ARRAYS - Shop content
|- 0 - STRING - Classname
|- 1 - INTEGER - Price
|- 2 - STRING - Condition that must return either true or false, if true the vehicle appears in the list else no
spawnPoints - ARRAY OF ARRAYS - Spawn positions (markers/positions)
|- 0 - STRING - Display name in the dialog
|- 1 - ARRAY OF MIXED - Markers/positions
};
};
*/
class HG_bluefor_carshop // HG_DefaultShop is just a placeholder for testing purposes, you can delete it completely and make your own
{
conditionToAccess = "true"; // Example: "(playerSide in [west,independent]) AND ((rank player) isEqualTo 'COLONEL')"
class PKW
{
displayName = "PKW";
vehicles[] =
{
{"B_G_Offroad_01_repair_F",15000,"true"}
{"B_G_Offroad_01_F",15000,"true"}
{"B_G_Offroad_01_armed_F",15000,"true"}
{"B_G_Offroad_01_AT_F",15000,"true"}
{"B_Quadbike_01_F",15000,"true"}
{"B_G_Quadbike_01_F",15000,"true"}
{"B_LSV_01_unarmed_F",15000,"true"}
{"B_LSV_01_unarmed_black_F",15000,"true"}
{"B_LSV_01_unarmed_olive_F",15000,"true"}
{"B_LSV_01_unarmed_sand_F",15000,"true"}
{"B_T_LSV_01_unarmed_black_F",15000,"true"}
{"B_T_LSV_01_unarmed_olive_F",15000,"true"}
{"B_T_LSV_01_unarmed_sand_F",15000,"true"}
};
spawnPoints[] =
{
{"bluefor_garage_spawn_land"}
};
};
class LKW
{
displayName = "LKW";
vehicles[] =
{
{"B_Truck_01_transport_F",15000,"true"}
{"B_Truck_01_covered_F",15000,"true"}
{"B_Truck_01_mover_F",15000,"true"}
{"B_Truck_01_box_F",15000,"true"}
{"B_Truck_01_Repair_F",15000,"true"}
{"B_Truck_01_ammo_F",15000,"true"}
{"B_Truck_01_fuel_F",15000,"true"}
{"B_Truck_01_medical_F",15000,"true"}
{"B_G_Van_01_transport_F",15000,"true"}
{"B_G_Van_01_fuel_F",15000,"true"}
};
spawnPoints[] =
{
{"bluefor_garage_spawn_land"}
};
};
class Panzer
{
displayName = "Panzer";
vehicles[] =
{
{"B_APC_Tracked_01_rcws_F",15000,"true"}
{"B_APC_Tracked_01_CRV_F",15000,"true"}
{"B_APC_Tracked_01_AA_F",15000,"true"}
{"B_MBT_01_cannon_F",15000,"true"}
{"B_MBT_01_arty_F",15000,"true"}
{"B_MBT_01_mlrs_F",15000,"true"}
{"B_MRAP_01_F",15000,"true"}
{"B_MRAP_01_gmg_F",15000,"true"}
{"B_MRAP_01_hmg_F",15000,"true"}
{"B_APC_Wheeled_01_cannon_F",15000,"true"}
{"B_MBT_01_TUSK_F",15000,"true"}
{"B_UGV_01_F",15000,"true"}
{"B_UGV_01_rcws_F",15000,"true"}
{"B_T_LSV_01_armed_F",15000,"true"}
{"B_T_LSV_01_AT_F",15000,"true"}
{"B_CTRG_LSV_01_light_F",15000,"true"}
{"B_LSV_01_armed_black_F",15000,"true"}
{"B_LSV_01_armed_olive_F",15000,"true"}
{"B_LSV_01_armed_sand_F",15000,"true"}
{"B_T_LSV_01_armed_black_F",15000,"true"}
{"B_T_LSV_01_armed_olive_F",15000,"true"}
{"B_T_LSV_01_armed_sand_F",15000,"true"}
};
spawnPoints[] =
{
{"bluefor_garage_spawn_land"}
};
};
};
class HG_opfor_carshop // HG_DefaultShop is just a placeholder for testing purposes, you can delete it completely and make your own
{
conditionToAccess = "true"; // Example: "(playerSide in [west,independent]) AND ((rank player) isEqualTo 'COLONEL')"
class PKW
{
displayName = "PKW";
vehicles[] =
{
{"O_G_Offroad_01_repair_F",15000,"true"}
{"O_G_Offroad_01_F",15000,"true"}
{"O_Quadbike_01_F",15000,"true"}
{"O_G_Quadbike_01_F",15000,"true"}
{"O_T_LSV_02_unarmed_F",15000,"true"}
{"O_T_LSV_02_unarmed_viper_F",15000,"true"}
{"O_LSV_02_unarmed_F",15000,"true"}
{"O_LSV_02_unarmed_viper_F",15000,"true"}
{"O_T_LSV_02_unarmed_black_F",15000,"true"}
{"O_T_LSV_02_unarmed_ghex_F",15000,"true"}
{"O_T_LSV_02_unarmed_arid_F",15000,"true"}
{"O_LSV_02_unarmed_black_F",15000,"true"}
{"O_LSV_02_unarmed_ghex_F",15000,"true"}
{"O_LSV_02_unarmed_arid_F",15000,"true"}
};
spawnPoints[] =
{
{"opfor_garage_spawn_land"}
};
};
class LKW
{
displayName = "LKW";
vehicles[] =
{
{"O_Truck_02_covered_F",15000,"true"}
{"O_Truck_02_transport_F",15000,"true"}
{"O_Truck_02_box_F",15000,"true"}
{"O_Truck_02_medical_F",15000,"true"}
{"O_Truck_02_Ammo_F",15000,"true"}
{"O_Truck_02_fuel_F",15000,"true"}
{"O_G_Van_01_transport_F",15000,"true"}
{"O_G_Van_01_fuel_F",15000,"true"}
{"O_Truck_03_transport_F",15000,"true"}
{"O_Truck_03_covered_F",15000,"true"}
{"O_Truck_03_repair_F",15000,"true"}
{"O_Truck_03_ammo_F",15000,"true"}
{"O_Truck_03_fuel_F",15000,"true"}
{"O_Truck_03_medical_F",15000,"true"}
{"O_Truck_03_device_F",15000,"true"}
};
spawnPoints[] =
{
{"opfor_garage_spawn_land"}
};
};
class Panzer
{
displayName = "Panzer";
vehicles[] =
{
{"O_APC_Tracked_02_cannon_F",15000,"true"}
{"O_APC_Tracked_02_AA_F",15000,"true"}
{"O_MBT_02_cannon_F",15000,"true"}
{"O_MBT_02_arty_F",15000,"true"}
{"O_MRAP_02_F",15000,"true"}
{"O_MRAP_02_hmg_F",15000,"true"}
{"O_MRAP_02_gmg_F",15000,"true"}
{"O_G_Offroad_01_armed_F",15000,"true"}
{"O_APC_Wheeled_02_rcws_F",15000,"true"}
{"O_APC_Wheeled_02_rcws_v2_F",15000,"true"}
{"O_UGV_01_F",15000,"true"}
{"O_UGV_01_rcws_F",15000,"true"}
{"O_T_LSV_02_armed_F",15000,"true"}
{"O_T_LSV_02_armed_viper_F",15000,"true"}
{"O_T_LSV_02_AT_F",15000,"true"}
{"O_LSV_02_armed_F",15000,"true"}
{"O_LSV_02_armed_viper_F",15000,"true"}
{"O_T_LSV_02_armed_black_F",15000,"true"}
{"O_T_LSV_02_armed_ghex_F",15000,"true"}
{"O_T_LSV_02_armed_arid_F",15000,"true"}
{"O_LSV_02_armed_black_F",15000,"true"}
{"O_LSV_02_armed_ghex_F",15000,"true"}
{"O_LSV_02_armed_arid_F",15000,"true"}
};
spawnPoints[] =
{
{"opfor_garage_spawn_land"}
};
};
};
class HG_bluefor_helishop // HG_DefaultShop is just a placeholder for testing purposes, you can delete it completely and make your own
{
conditionToAccess = "true"; // Example: "(playerSide in [west,independent]) AND ((rank player) isEqualTo 'COLONEL')"
class Helikopter
{
displayName = "Helikopter";
vehicles[] =
{
{"B_Heli_Light_01_F",15000,"true"}
{"B_Heli_Light_01_armed_F",15000,"true"}
{"B_Heli_Light_01_dynamicLoadout_F",15000,"true"}
{"B_Heli_Attack_01_F",15000,"true"}
{"B_Heli_Attack_01_dynamicLoadout_F",15000,"true"}
{"B_Heli_Transport_01_F",15000,"true"}
{"B_Heli_Transport_01_camo_F",15000,"true"}
{"B_Heli_Transport_03_F",15000,"true"}
{"B_Heli_Transport_03_unarmed_F",15000,"true"}
{"B_Heli_Transport_03_black_F",15000,"true"}
{"B_Heli_Transport_03_unarmed_green_F",15000,"true"}
{"B_CTRG_Heli_Transport_01_sand_F",15000,"true"}
{"B_CTRG_Heli_Transport_01_tropic_F",15000,"true"}
{"B_T_VTOL_01_infantry_F",15000,"true"}
{"B_T_VTOL_01_vehicle_F",15000,"true"}
{"B_T_VTOL_01_armed_F",15000,"true"}
{"B_T_VTOL_01_infantry_blue_F",15000,"true"}
{"B_T_VTOL_01_infantry_olive_F",15000,"true"}
{"B_T_VTOL_01_vehicle_blue_F",15000,"true"}
{"B_T_VTOL_01_vehicle_olive_F",15000,"true"}
{"B_T_VTOL_01_armed_blue_F",15000,"true"}
{"B_T_VTOL_01_armed_olive_F",15000,"true"}
};
spawnPoints[] =
{
{"bluefor_garage_spawn_air"}
};
};
class Jets
{
displayName = "$Jets/Drohnen";
vehicles[] =
{
{"B_Plane_CAS_01_F",45000,"true"}
{"B_Plane_Fighter_01_F",45000,"true"}
{"B_Plane_Fighter_01_Stealth_F",45000,"true"}
{"B_Plane_CAS_01_dynamicLoadout_F",45000,"true"}
{"B_UAV_05_F",45000,"true"}
{"B_UAV_02_F",45000,"true"}
{"B_UAV_02_CAS_F",45000,"true"}
{"B_UAV_02_dynamicLoadout_F",45000,"true"}
{"B_T_UAV_03_F",45000,"true"}
{"B_T_UAV_03_dynamicLoadout_F",45000,"true"}
};
spawnPoints[] =
{
{"bluefor_garage_spawn_air"}
};
};
};
class HG_opfor_helishop // HG_DefaultShop is just a placeholder for testing purposes, you can delete it completely and make your own
{
conditionToAccess = "true"; // Example: "(playerSide in [west,independent]) AND ((rank player) isEqualTo 'COLONEL')"
class Helikopter
{
displayName = "Helikopter";
vehicles[] =
{
{"O_Heli_Light_02_dynamicLoadout_F",15000,"true"}
{"O_Heli_Light_02_F",15000,"true"}
{"O_Heli_Light_02_unarmed_F",15000,"true"}
{"O_Heli_Light_02_v2_F",15000,"true"}
{"O_Heli_Attack_02_F",15000,"true"}
{"O_Heli_Attack_02_black_F",15000,"true"}
{"O_Heli_Attack_02_dynamicLoadout_F",15000,"true"}
{"O_Heli_Attack_02_dynamicLoadout_black_F",15000,"true"}
{"O_Heli_Transport_04_F",15000,"true"}
{"O_Heli_Transport_04_ammo_F",15000,"true"}
{"O_Heli_Transport_04_bench_F",15000,"true"}
{"O_Heli_Transport_04_box_F",15000,"true"}
{"O_Heli_Transport_04_covered_F",15000,"true"}
{"O_Heli_Transport_04_fuel_F",15000,"true"}
{"O_Heli_Transport_04_medevac_F",15000,"true"}
{"O_Heli_Transport_04_repair_F",15000,"true"}
{"O_Heli_Transport_04_black_F",15000,"true"}
{"O_Heli_Transport_04_ammo_black_F",15000,"true"}
{"O_Heli_Transport_04_bench_black_F",15000,"true"}
{"O_Heli_Transport_04_box_black_F",15000,"true"}
{"O_Heli_Transport_04_covered_black_F",15000,"true"}
{"O_Heli_Transport_04_fuel_black_F",15000,"true"}
{"O_Heli_Transport_04_medevac_black_F",15000,"true"}
{"O_Heli_Transport_04_repair_black_F",15000,"true"}
};
spawnPoints[] =
{
{"opfor_garage_spawn_air"}
};
};
class Jets
{
displayName = "Jets/Drohnen";
vehicles[] =
{
{"O_Plane_CAS_02_F",15000,"true"}
{"O_Plane_CAS_02_dynamicLoadout_F",15000,"true"}
{"O_T_VTOL_02_infantry_F",15000,"true"}
{"O_T_VTOL_02_vehicle_F",15000,"true"}
{"O_T_VTOL_02_infantry_dynamicLoadout_F",15000,"true"}
{"O_T_VTOL_02_vehicle_dynamicLoadout_F",15000,"true"}
{"O_T_VTOL_02_infantry_hex_F",15000,"true"}
{"O_T_VTOL_02_infantry_ghex_F",15000,"true"}
{"O_T_VTOL_02_infantry_grey_F",15000,"true"}
{"O_T_VTOL_02_vehicle_hex_F",15000,"true"}
{"O_T_VTOL_02_vehicle_ghex_F",15000,"true"}
{"O_T_VTOL_02_vehicle_grey_F",15000,"true"}
{"O_UAV_02_F",15000,"true"}
{"O_UAV_02_CAS_F",15000,"true"}
{"O_UAV_02_dynamicLoadout_F",15000,"true"}
{"O_T_UAV_04_CAS_F",15000,"true"}
};
spawnPoints[] =
{
{"opfor_garage_spawn_air"}
};
};
};
Alles anzeigen
Sieht zufällig jemand den Fehler?