Hey,
wir haben folgendes Problem: Der Fahrzeugshop bei den Ziv's zeigt den SUV nicht an bzw. nur Fehlerhaft (Preise stehen auf 0€ etc)
Folgender Fehler wird beim Aufrufen des Shops angezeigt:
Code
12:11:28 Error in expression <chVehInfo; _control lbAdd (_vehicleInfo select 3); _control lbSetPicture [(lbSiz>
12:11:28 Error position: <select 3); _control lbSetPicture [(lbSiz>
12:11:28 Error Nullteiler
12:11:28 File core\shops\fn_vehicleShopMenu.sqf [life_fnc_vehicleShopMenu], line 35
Hier ist die Config_Vehicle:
Code
class civ_car {
side = "civ";
conditions = "";
vehicles[] = {
{ "C_Hatchback_01_F", "" },
{ "C_Offroad_01_F", "" },
{ "C_Offroad_02_unarmed_F", "" },
{ "C_SUV_01_F", "" },
{ "C_Hatchback_01_sport_F ", "" },
{ "C_Van_01_transport_F", "" },
{ "C_Van_01_box_F", "" },
{ "C_Van_01_fuel_F", "" }
};
};
Alles anzeigen
und die Skins:
Code
class C_SUV_01_F {
vItemSpace = 50;
conditions = "license_civ_driver || {!(playerSide isEqualTo civilian)}";
price = 30000;
textures[] = {
{ "Dark Red", "civ", {
"\a3\soft_f_gamma\SUV_01\Data\suv_01_ext_co.paa"
}, "" },
{ "Silver", "civ", {
"\a3\soft_f_gamma\SUV_01\Data\suv_01_ext_03_co.paa"
}, "" },
{ "Orange", "civ", {
"\a3\soft_f_gamma\SUV_01\Data\suv_01_ext_04_co.paa"
}, "" },
{ "Ambulancia", "med", {
"textures\Ambulancia\Fahrzeuge\SUV_AM.paa"
}, "" },
{ "Polizei", "cop", {
"textures\Polizei\Fahrzeuge\SUV_PF.paa"
}, "" },
{ "Blau", "civ", {
"textures\Zivilisten\Fahrzeuge\SUV_Blau.paa"
}, "" },
{ "Taxi", "civ", {
"textures\Zivilisten\Fahrzeuge\SUV_Taxi.paa"
}, "license_civ_taxi" }
};
};
Alles anzeigen
Und die angeblich Fehlerhafte Datei:
Code
#include "..\..\script_macros.hpp"
/*
File: fn_vehicleShopMenu.sqf
Author: Bryan "Tonic" Boardwine
Description:
Blah
*/
(_this select 3) params [
["_shop","",[""]],
["_sideCheck",sideUnknown,[civilian]],
["_spawnPoints","",["",[]]],
["_shopFlag","",[""]],
["_shopTitle","",[""]],
["_disableBuy",false,[true]]
];
disableSerialization;
//Long boring series of checks
if (dialog) exitWith {};
if (_shop isEqualTo "") exitWith {};
if (!(_sideCheck isEqualTo sideUnknown) && {!(playerSide isEqualTo _sideCheck)}) exitWith {hint localize "STR_Shop_Veh_NotAllowed"};
private _conditions = M_CONFIG(getText,"CarShops",_shop,"conditions");
if !([_conditions] call life_fnc_levelCheck) exitWith {hint localize "STR_Shop_Veh_NotAllowed"};
if (LIFE_SETTINGS(getNumber,"vehicleShop_3D") isEqualTo 1) then {
createDialog "Life_Vehicle_Shop_v2_3D";
} else {
createDialog "Life_Vehicle_Shop_v2";
};
life_veh_shop = [_shop,_spawnpoints,_shopFlag,_disableBuy]; //Store it so so other parts of the system can access it.
ctrlSetText [2301,_shopTitle];
if (_disableBuy) then {
//Disable the buy button.
ctrlEnable [2309,false];
};
//Fetch the shop config.
_vehicleList = M_CONFIG(getArray,"CarShops",_shop,"vehicles");
private _control = CONTROL(2300,2302);
lbClear _control; //Flush the list.
ctrlShow [2330,false];
ctrlShow [2304,false];
//Loop through
{
_x params["_className"];
private _toShow = [_x] call life_fnc_levelCheck;
if (_toShow) then {
_vehicleInfo = [_className] call life_fnc_fetchVehInfo;
_control lbAdd (_vehicleInfo select 3);
_control lbSetPicture [(lbSize _control)-1,(_vehicleInfo select 2)];
_control lbSetData [(lbSize _control)-1,_className];
_control lbSetValue [(lbSize _control)-1,_forEachIndex];
};
} forEach _vehicleList;
if (LIFE_SETTINGS(getNumber,"vehicleShop_3D") isEqualTo 1) then {
[] call life_fnc_vehicleShopInit3DPreview;
};
((findDisplay 2300) displayCtrl 2302) lbSetCurSel 0;
Alles anzeigen
Ich hoffe, ihr könnt uns helfen.
MfG