Kann ich dir das per TS zeigen das vereinfacht das nochmal. ts.cyrus-life.de
Beiträge von Niklas Smolik
Hinweis zur Zukunft von Nodezone
Das neue Nodezone befindet sich in der finalen Entwicklungsphase. Mit dem geplanten Start wird das bisherige Forum auf Read Only umgestellt und künftig als Archiv erhalten bleiben.
Alle Informationen zur neuen Plattform, zur Accountübernahme und zum weiteren Ablauf findest du hier: Zum aktuellen Nodezone Beitrag
Das neue Nodezone befindet sich in der finalen Entwicklungsphase. Mit dem geplanten Start wird das bisherige Forum auf Read Only umgestellt und künftig als Archiv erhalten bleiben.
Alle Informationen zur neuen Plattform, zur Accountübernahme und zum weiteren Ablauf findest du hier: Zum aktuellen Nodezone Beitrag
-
-
Spoiler anzeigen
/*
* Format:
* 3: STRING (Conditions) - Must return boolean :
* String can contain any amount of conditions, aslong as the entire
* string returns a boolean. This allows you to check any levels, licenses etc,
* in any combination. For example:
* "call life_coplevel && license_civ_someLicense"
* This will also let you call any other function.
*
*/
class CfgSpawnPoints {
class Altis {
class Civilian {
class Kavala {
displayName = "Kavala";
spawnMarker = "civ_spawn_1";
icon = "\a3\ui_f\data\map\MapControl\watertower_ca.paa";
conditions = "";
};
class Athira {
displayName = "Athira";
spawnMarker = "civ_spawn_3";
icon = "\a3\ui_f\data\map\MapControl\watertower_ca.paa";
conditions = "";
};
class Pyrgos {
displayName = "Pyrgos";
spawnMarker = "civ_spawn_2";
icon = "\a3\ui_f\data\map\MapControl\watertower_ca.paa";
conditions = "";
};
class Sofia {
displayName = "Sofia";
spawnMarker = "civ_spawn_4";
icon = "\a3\ui_f\data\map\MapControl\watertower_ca.paa";
conditions = "";
};
class RebelN {
displayName = RebellenHQ;
spawnMarker = "Rebelop";
icon = "\a3\ui_f\data\map\MapControl\bunker_ca.paa";
conditions = "";
};
class Miliz {
displayName = MilizHQ;
spawnMarker = "miliz_spawn";
icon = "\a3\ui_f\data\map\MapControl\bunker_ca.paa";
conditions = "license_civ_miliz";
};
class Bandit {
displayName = BanditenHQ;
spawnMarker = "bandit_spawn";
icon = "\a3\ui_f\data\map\MapControl\bunker_ca.paa";
conditions = "license_civ_bandit";
};
class Mafia {
displayName = MafiaHQ;
spawnMarker = "mafia_spawn";
icon = "\a3\ui_f\data\map\MapControl\bunker_ca.paa";
conditions = "license_civ_mafia";
};
};
class Cop {
class Kavala {
displayName = "Kavala HQ";
spawnMarker = "cop_spawn_1";
icon = "\a3\ui_f\data\map\MapControl\watertower_ca.paa";
conditions = "";
};
class Athira {
displayName = "Athira HQ";
spawnMarker = "cop_spawn_3";
icon = "\a3\ui_f\data\map\MapControl\fuelstation_ca.paa";
conditions = "";
};
class Pyrgos {
displayName = "Pyrgos HQ";
spawnMarker = "cop_spawn_2";
icon = "\a3\ui_f\data\map\GroupIcons\badge_rotate_0_gs.paa";
conditions = "";
};
class Air {
displayName = $STR_MAR_Police_Air_HQ;
spawnMarker = "cop_spawn_4";
icon = "\a3\ui_f\data\map\Markers\NATO\b_air.paa";
conditions = "call life_coplevel >= 2 && {license_cop_cAir}";
};
class HW {
displayName = $STR_MAR_Highway_Patrol;
spawnMarker = "cop_spawn_5";
icon = "\a3\ui_f\data\map\GroupIcons\badge_rotate_0_gs.paa";
conditions = "call life_coplevel >= 3";
};
};
class Medic {
class Kavala {
displayName = $STR_SP_EMS_Kav;
spawnMarker = "medic_spawn_1";
icon = "\a3\ui_f\data\map\MapControl\hospital_ca.paa";
conditions = "";
};
class Athira {
displayName = $STR_SP_EMS_Ath;
spawnMarker = "medic_spawn_2";
icon = "\a3\ui_f\data\map\MapControl\hospital_ca.paa";
conditions = "";
};
class Pyrgos {
displayName = $STR_SP_EMS_Pyr;
spawnMarker = "medic_spawn_3";
icon = "\a3\ui_f\data\map\MapControl\hospital_ca.paa";
conditions = "";
};
};
};
class Tanoa {
class Civilian {
class Georgetown {
displayName = "Georgetown";
spawnMarker = "civ_spawn_1";
icon = "\a3\ui_f\data\map\MapControl\watertower_ca.paa";
conditions = "!license_civ_rebel";
};
class Balavu {
displayName = "Balavu";
spawnMarker = "civ_spawn_3";
icon = "\a3\ui_f\data\map\MapControl\watertower_ca.paa";
conditions = "";
};
class Tuvanaka {
displayName = "Tuvanaka";
spawnMarker = "civ_spawn_2";
icon = "\a3\ui_f\data\map\MapControl\watertower_ca.paa";
conditions = "";
};
class Lijnhaven {
displayName = "Lijnhaven";
spawnMarker = "civ_spawn_4";
icon = "\a3\ui_f\data\map\MapControl\watertower_ca.paa";
conditions = "";
};
class RebelNW {
displayName = $STR_SP_Reb_NW;
spawnMarker = "Rebelop";
icon = "\a3\ui_f\data\map\MapControl\bunker_ca.paa";
conditions = "license_civ_rebel";
};
class RebelS {
displayName = $STR_SP_Reb_S;
spawnMarker = "Rebelop_1";
icon = "\a3\ui_f\data\map\MapControl\bunker_ca.paa";
conditions = "license_civ_rebel";
};
class RebelNE {
displayName = $STR_SP_Reb_NE;
spawnMarker = "Rebelop_2";
icon = "\a3\ui_f\data\map\MapControl\bunker_ca.paa";
conditions = "license_civ_rebel";
};
};
class Cop {
class NAirport {
displayName = $STR_SP_Cop_Air_N;
spawnMarker = "cop_spawn_1";
icon = "\a3\ui_f\data\map\MapControl\watertower_ca.paa";
conditions = "";
};
class SWAirport {
displayName = $STR_SP_Cop_Air_SW;
spawnMarker = "cop_spawn_3";
icon = "\a3\ui_f\data\map\MapControl\fuelstation_ca.paa";
conditions = "";
};
class GeorgetownHQ {
displayName = "Georgetown HQ";
spawnMarker = "cop_spawn_2";
icon = "\a3\ui_f\data\map\GroupIcons\badge_rotate_0_gs.paa";
conditions = "";
};
class Air {
displayName = $STR_MAR_Police_Air_HQ;
spawnMarker = "cop_spawn_4";
icon = "\a3\ui_f\data\map\Markers\NATO\b_air.paa";
conditions = "call life_coplevel >= 2 && {license_cop_cAir}";
};
class HW {
displayName = $STR_MAR_Highway_Patrol;
spawnMarker = "cop_spawn_5";
icon = "\a3\ui_f\data\map\GroupIcons\badge_rotate_0_gs.paa";
conditions = "call life_coplevel >= 3";
};
};
class Medic {
class SEHospital {
displayName = $STR_SP_EMS_SE;
spawnMarker = "medic_spawn_1";
icon = "\a3\ui_f\data\map\MapControl\hospital_ca.paa";
conditions = "";
};
class TanoukaHospital {
displayName = $STR_SP_EMS_Tan;
spawnMarker = "medic_spawn_2";
icon = "\a3\ui_f\data\map\MapControl\hospital_ca.paa";
conditions = "";
};
class NEAirportHospital {
displayName = $STR_SP_EMS_NEair;
spawnMarker = "medic_spawn_3";
icon = "\a3\ui_f\data\map\MapControl\hospital_ca.paa";
conditions = "";
};
};
};
};
-
Code
Alles anzeigen22:36:20 InitSound - complete 22:36:20 PhysX3 SDK Init started ... 22:36:20 PhysX3 SDK Init ended. 22:36:23 Warning Message: Script \life_server\Functions\Systems\fn_setObjVar.sqf not found 22:36:26 core\skyobject\skyobject.p3d: No geometry and no visual shape 22:36:26 a3\data_f\krater.p3d: No geometry and no visual shape 22:36:26 a3\data_f\koule.p3d: No geometry and no visual shape 22:36:27 Warning Message: You cannot play/edit this mission; it is dependent on downloadable content that has been deleted. a3_characters_f 22:36:27 Loading movesType CfgGesturesMale 22:36:27 Creating action map cache 22:36:27 Animation a3\anims_f\data\anim\sdr\gst\gestureempty.rtm not found or empty 22:36:27 MovesType CfgGesturesMale load time 83 ms 22:36:27 Loading movesType CfgMovesMaleSdr 22:36:28 Reading cached action map data 22:36:31 MovesType CfgMovesMaleSdr load time 3274 ms 22:36:31 a3\characters_f\proxies\flag.p3d: No geometry and no visual shape 22:36:31 VoteThreshold must be in 0..1 range. Defaulting to 0.5 22:36:32 Initializing Steam server - Game Port: 2302, Steam Query Port: 2303 22:36:32 Steam AppId from steam_appid.txt: 107410 22:36:32 Unsupported language English in stringtable 22:36:32 Unsupported language English in stringtable 22:36:40 Connected to Steam servers 22:36:40 Starting mission: 22:36:40 Mission file: Altis_Life 22:36:40 Mission world: Altis 22:36:40 Mission directory: mpmissions\Altis_Life.Altis\ 22:36:40 a3\data_f\blesk1.p3d: No geometry and no visual shape 22:36:40 a3\data_f\blesk2.p3d: No geometry and no visual shape 22:36:40 a3\data_f\raindrop.p3d: No geometry and no visual shape 22:36:40 a3\map_stratis\data\obloha.p3d: No geometry and no visual shape 22:36:40 a3\data_f\stars.p3d: No geometry and no visual shape 22:36:40 a3\map_stratis\data\horizont.p3d: No geometry and no visual shape 22:36:40 a3\data_f\rainbow.p3d: No geometry and no visual shape 22:36:53 Strange convex component202 in a3\structures_f\households\house_small01\d_house_small_01_v1_f.p3d:geometryView 22:36:53 Strange convex component203 in a3\structures_f\households\house_small01\d_house_small_01_v1_f.p3d:geometryView 22:36:53 Strange convex component145 in a3\plants_f\tree\t_pinuss2s_b_f.p3d:geometryView 22:36:53 Strange convex component149 in a3\plants_f\tree\t_pinuss2s_b_f.p3d:geometryView 22:36:53 Strange convex component65 in a3\rocks_f\sharp\sharprock_wallh.p3d:geometryFire 22:36:57 Strange convex component06 in a3\rocks_f\sharp\sharprock_monolith.p3d:geometryFire 22:36:57 Strange convex component18 in a3\rocks_f\sharp\sharprock_monolith.p3d:geometryFire 22:36:57 Strange convex component30 in a3\rocks_f\sharp\sharprock_monolith.p3d:geometryFire 22:36:57 Strange convex component31 in a3\rocks_f\sharp\sharprock_monolith.p3d:geometryFire 22:36:57 Strange convex component32 in a3\rocks_f\sharp\sharprock_monolith.p3d:geometryFire 22:36:57 Strange convex component42 in a3\rocks_f\sharp\sharprock_monolith.p3d:geometryFire 22:36:57 Strange convex component43 in a3\rocks_f\sharp\sharprock_monolith.p3d:geometryFire 22:36:57 Strange convex component44 in a3\rocks_f\sharp\sharprock_monolith.p3d:geometryFire 22:36:57 Strange convex component46 in a3\rocks_f\sharp\sharprock_monolith.p3d:geometryFire 22:36:57 Strange convex component58 in a3\rocks_f\sharp\sharprock_monolith.p3d:geometryFire 22:36:57 Strange convex component64 in a3\rocks_f\sharp\sharprock_monolith.p3d:geometryFire 22:36:57 Strange convex component76 in a3\rocks_f\sharp\sharprock_monolith.p3d:geometryFire 22:36:57 Strange convex component98 in a3\rocks_f\sharp\sharprock_monolith.p3d:geometryFire 22:36:57 Strange convex component100 in a3\rocks_f\sharp\sharprock_monolith.p3d:geometryFire 22:36:57 Strange convex component132 in a3\rocks_f\sharp\sharprock_monolith.p3d:geometryFire 22:36:57 Strange convex component145 in a3\rocks_f\sharp\sharprock_monolith.p3d:geometryFire 22:36:57 Strange convex component149 in a3\rocks_f\sharp\sharprock_monolith.p3d:geometryFire 22:36:57 Strange convex component151 in a3\rocks_f\sharp\sharprock_monolith.p3d:geometryFire 22:36:57 Strange convex component167 in a3\rocks_f\sharp\sharprock_monolith.p3d:geometryFire 22:36:57 Strange convex component198 in a3\rocks_f\sharp\sharprock_monolith.p3d:geometryFire 22:36:57 Strange convex component244 in a3\rocks_f\sharp\sharprock_monolith.p3d:geometryFire 22:36:57 Strange convex component304 in a3\rocks_f\sharp\sharprock_monolith.p3d:geometryFire 22:36:57 Strange convex component310 in a3\rocks_f\sharp\sharprock_monolith.p3d:geometryFire 22:36:57 Strange convex component337 in a3\rocks_f\sharp\sharprock_monolith.p3d:geometryFire 22:36:57 Strange convex component353 in a3\rocks_f\sharp\sharprock_monolith.p3d:geometryFire 22:36:57 Strange convex component378 in a3\rocks_f\sharp\sharprock_monolith.p3d:geometryFire 22:36:57 Strange convex component05 in a3\rocks_f\sharp\sharprock_spike.p3d:geometryFire 22:36:57 Strange convex component74 in a3\rocks_f\sharp\sharprock_spike.p3d:geometryFire 22:36:57 Strange convex component202 in a3\rocks_f\sharp\sharprock_spike.p3d:geometryFire 22:36:57 Strange convex component391 in a3\rocks_f\sharp\sharprock_spike.p3d:geometryFire 22:37:06 a3\structures_f\mil\flags\flag_f.p3d: No geometry and no visual shape 22:37:15 RoadCone_L_F: light_1_blinking - unknown animation source MarkerLight (defined in AnimationSources::Light_1_source) 22:37:17 a3\weapons_f\binocular\nvg_proxy.p3d: No geometry and no visual shape 22:37:17 a3\characters_f_beta\heads\glasses\g_shades_green.p3d: No geometry and no visual shape 22:37:17 No speaker given for 'Archie Conrad' 22:37:17 No speaker given for 'Matthew White' 22:37:17 No speaker given for 'Max Jones' 22:37:17 No speaker given for 'Keith Harris' 22:37:17 a3\characters_f\heads\glasses\g_shades_black.p3d: No geometry and no visual shape 22:37:17 a3\characters_f_gamma\heads\glasses\g_aviators.p3d: No geometry and no visual shape 22:37:17 Strange convex component116 in a3\rocks_f\sharp\sharprock_apart.p3d:geometryFire 22:37:17 Strange convex component117 in a3\rocks_f\sharp\sharprock_apart.p3d:geometryFire 22:37:17 Strange convex component118 in a3\rocks_f\sharp\sharprock_apart.p3d:geometryFire 22:37:17 Strange convex component119 in a3\rocks_f\sharp\sharprock_apart.p3d:geometryFire 22:37:18 Error: Object(2 : 1293) not found 22:37:18 c:\bis\source\stable\futura\lib\network\networkserver.cpp NetworkServer::OnClientStateChanged:NOT IMPLEMENTED - briefing! 22:37:18 Mission id: e4d3df2db66ce672e988807142d523b2c3bc2f6b 22:37:18 CallExtension loaded: extDB3 (C:\server\a3master\@extdb3\extDB3_x64.dll) [1.0.3.2] [1.0.3.2] 22:37:18 "extDB3: Connected to Database" 22:37:18 "----------------------------------------------------------------------------------------------------" 22:37:18 "---------------------------------- Starting Altis Life Server Init ---------------------------------" 22:37:18 "------------------------------------------ Version 5.0.0 -------------------------------------------" 22:37:18 "----------------------------------------------------------------------------------------------------" 22:37:18 Attempt to override final function - bis_fnc_storeparamsvalues_data 22:37:18 "----------------------------------------------------------------------------------------------------" 22:37:18 " End of Altis Life Server Init :: Total Execution Time 0.689995 seconds " 22:37:18 "----------------------------------------------------------------------------------------------------" 22:37:18 Error in expression <noa", "Land_Medevac_house_V1_F"]]] call TON_fnc_terrainSort; private _altisArray> 22:37:18 Error position: <TON_fnc_terrainSort; private _altisArray> 22:37:18 Error Undefined variable in expression: ton_fnc_terrainsort 22:37:18 File life_server\init.sqf, line 186 22:37:20 "########################## DYNAMIC MARKET ##########################" 22:37:20 "### >> SUCCESSFULLY LOADED PRICES FROM DATABASE! ###" 22:37:20 "####################################################################" 22:37:51 BEServer: registering a new player #451066169 22:38:28 Server: Object 0:0 not found (message Type_181) 22:38:28 Server: Object 0:0 not found (message Type_181) 22:38:28 Server: Object 0:0 not found (message Type_181) 22:38:28 Server: Object 0:0 not found (message Type_181) 22:38:28 Server: Object 0:0 not found (message Type_181) 22:38:28 Server: Object 0:0 not found (message Type_181) 22:38:34 Unaccessible 22:38:35 "SPYGLASS-FLAG: Niklas Miller : 76561198354624467 : VariableSetBeforeInitialized_sell_array" 22:38:36 Client: Remote object 4:0 not found 22:38:37 Warning: Cleanup player - person 2:1641 not found 22:39:16 Server: Object 0:0 not found (message Type_181) 22:39:16 Server: Object 0:0 not found (message Type_181) 22:39:16 Server: Object 0:0 not found (message Type_181) 22:39:16 Server: Object 0:0 not found (message Type_181) 22:39:16 Server: Object 0:0 not found (message Type_181) 22:39:16 Server: Object 0:0 not found (message Type_181) 22:39:24 Unaccessible 22:39:25 ">> ALLIANCEAPPS: Processing functions for Niklas Miller(UID: 76561198354624467 | LVL: 5)" 22:39:27 ">> ALLIANCEAPPS: 56 Functions streamed to Niklas Miller(UID: 76561198354624467 | LVL: 5)(0 other functions) - TIME WASTED: 2.326" 22:40:40 "### DYNMARKET >> SUCCESSFULLY BACKUP'D CURRENT PRICES TO DATABASE! ###" 22:41:05 Deinitialized shape [Class: "C_Soldier_VR_F"; Shape: "a3\characters_f_bootcamp\common\vr_soldier_f.p3d";] 22:41:05 Deinitialized shape [Class: "Underwear_F"; Shape: "a3\characters_f\common\basicbody.p3d";] 22:41:05 Deinitialized shape [Class: "C_man_p_fugitive_F"; Shape: "a3\characters_f\civil\c_poor.p3d";] 22:41:05 Deinitialized shape [Class: "C_man_w_worker_F"; Shape: "a3\characters_f\common\coveralls.p3d";] 22:41:05 Deinitialized shape [Class: "C_man_1"; Shape: "a3\characters_f\civil\c_poloshirt.p3d";] 22:41:05 Deinitialized shape [Class: "C_man_polo_3_F"; Shape: "a3\characters_f\civil\c_poloshirt.p3d";] 22:41:05 Deinitialized shape [Class: "C_man_polo_6_F"; Shape: "a3\characters_f\civil\c_poloshirt.p3d";] 22:41:05 Deinitialized shape [Class: "C_man_polo_1_F"; Shape: "a3\characters_f\civil\c_poloshirt.p3d";] 22:41:05 Deinitialized shape [Class: "C_man_polo_2_F"; Shape: "a3\characters_f\civil\c_poloshirt.p3d";] 22:41:05 Deinitialized shape [Class: "C_man_polo_5_F"; Shape: "a3\characters_f\civil\c_poloshirt.p3d";] 22:41:05 Deinitialized shape [Class: "C_man_polo_4_F"; Shape: "a3\characters_f\civil\c_poloshirt.p3d";] 22:41:05 Deinitialized shape [Class: "B_RangeMaster_F"; Shape: "a3\characters_f\civil\c_poloshirtpants.p3d";] 22:41:05 c:\bis\source\stable\futura\lib\network\networkserver.cpp ClearNetServer:NOT IMPLEMENTED - briefing! 22:41:09 Extensions: 22:41:09 extDB3 (C:\server\a3master\@extdb3\extDB3_x64.dll) [1.0.3.2] [1.0.3.2] -
Ich spawne wenn ich in Kavala, Athira, Sofia, Pyrgos spawnen will auf der Spawn-Insel, aber wenn ich bei den Lizenz abhängigen Spawnpunkten spawnen will funktioniert das.
Hier der RPT-Ausschnitt
-
Ich habe das Problem das wenn ich Spawne auf der Spawn Insel spawne. Zudem werden mir die Markt Preise nicht angezeigt im Markt-Fenster. Ich nutze das Dynamic-Markt-System. Und da steht oben rechts etwas auf spanish oder französisch. Ich habe im Anhang den RPT-Log.
-
Keine Ahnung wie das geht

-
Ich habe garkein marktscript. Möchte einfach die Markt preise über Knopf anzeigen. Habe in sachen farmen noch standart altis life
-
Ich habe nicht das dynamic market script. Möchte die preise selber per Fenster einblenden. Habe zwar jetzt ein Knopf aber da passiert nichts wenn ich drauf drücke
-
Und wenn ich das eingefügt habe habe ich ein Button im Z-Menü der ein Marktpreis fenster öffnet ?
-
Meinst du den ersten Schritt vom Tutorial ??
-
Guten Abend,
ich möchte in meinem Z-Menü ein Button einfügen. Wenn man dort drauf drückt öffnet sich ein Fenster wo die Marktpreise drauf stehen. Ich wüsste nicht wie ich das machen soll.
-
Habe es jetzt fixen können lag tatsächlich an einer Klammer
Danke an alle die geholfen haben
-
-
Doch im Englishen heißt das so
-
-
Aber daran liegt doch so ein großes Problem nicht oder ?
-
Geht immernoch nicht habe die Klammer die zuviel war entfernt
-
#include "..\..\script_macros.hpp"
/*
File: fn_useItem.sqf
Author: Bryan "Tonic" Boardwine
Description:
Main function for item effects and functionality through the player menu.
*/
private "_item";
disableSerialization;
if ((lbCurSel 2005) isEqualTo -1) exitWith {hint localize "STR_ISTR_SelectItemFirst";};
_item = CONTROL_DATA(2005);
switch (true) do {
case (_item in ["waterBottle","coffee","redgull"]): {
if ([false,_item,1] call life_fnc_handleInv) then {
life_thirst = 100;
if (LIFE_SETTINGS(getNumber,"enable_fatigue") isEqualTo 1) then {player setFatigue 0;};
if (_item isEqualTo "redgull" && {LIFE_SETTINGS(getNumber,"enable_fatigue") isEqualTo 1}) then {
[] spawn {
life_redgull_effect = time;
titleText[localize "STR_ISTR_RedGullEffect","PLAIN"];
player enableFatigue false;
waitUntil {!alive player
((time - life_redgull_effect) > (3 * 60))};player enableFatigue true;
};
};
};
};
case (_item isEqualTo "boltcutter"): {
[cursorObject] spawn life_fnc_boltcutter;
closeDialog 0;
};
case (_item isEqualTo "blastingcharge"): {
player reveal fed_bank;
(group player) reveal fed_bank;
[cursorObject] spawn life_fnc_blastingCharge;
closeDialog 0;
};
case (_item isEqualTo "defusekit"): {
[cursorObject] spawn life_fnc_defuseKit;
closeDialog 0;
};
case (_item isEqualTo "storagesmall"): {
[false] call life_fnc_storageBox;
};
case (_item isEqualTo "storagebig"): {
[true] call life_fnc_storageBox;
};
case (_item isEqualTo "spikeStrip"): {
if (!isNull life_spikestrip) exitWith {hint localize "STR_ISTR_SpikesDeployment"; closeDialog 0};
if ([false,_item,1] call life_fnc_handleInv) then {
[] spawn life_fnc_spikeStrip;
closeDialog 0;
};
};
case (_item isEqualTo "fuelFull"): {
if !(isNull objectParent player) exitWith {hint localize "STR_ISTR_RefuelInVehicle"};
[] spawn life_fnc_jerryRefuel;
closeDialog 0;
};
case (_item isEqualTo "fuelEmpty"): {
[] spawn life_fnc_jerryCanRefuel;
closeDialog 0;
};
case (_item isEqualTo "lockpick"): {
[] spawn life_fnc_lockpick;
closeDialog 0;
};
case (_item isEqualTo "morphine"): {
[] spawn life_fnc_morphine;
};
};
case (_item in ["apple","rabbit","salema","ornate","mackerel","tuna","mullet","catshark","turtle_soup","hen","rooster","sheep","goat","donuts","tbacon","peach"]): {
if (!(M_CONFIG(getNumber,"VirtualItems",_item,"edible") isEqualTo -1)) then {
if ([false,_item,1] call life_fnc_handleInv) then {
_val = M_CONFIG(getNumber,"VirtualItems",_item,"edible");
_sum = life_hunger + _val;
switch (true) do {
case (_val < 0 && _sum < 1): {life_hunger = 5;}; //This adds the ability to set the entry edible to a negative value and decrease the hunger without death
case (_sum > 100): {life_hunger = 100;};
default {life_hunger = _sum;};
};
};
};
};
default {
hint localize "STR_ISTR_NotUsable";
};
[] call life_fnc_p_updateMenu;
[] call life_fnc_hudUpdate;
-
Jetzt bekomme ich diesen Fehler. Hat sich noch nichts geändert am Problem
Code
Alles anzeigen15:48:26 Error in expression <phine.sqf [life_fnc_morphine]" include "..\..\script_macros.hpp" private["_> 15:48:26 Error position: <"..\..\script_macros.hpp" private["_> 15:48:26 Error Missing ; 15:48:26 File core\items\fn_morphine.sqf [life_fnc_morphine], line 1 15:48:26 Error in expression <phine.sqf [life_fnc_morphine]" include "..\..\script_macros.hpp" private["_> 15:48:26 Error position: <"..\..\script_macros.hpp" private["_> 15:48:26 Error Missing ; 15:48:26 File core\items\fn_morphine.sqf [life_fnc_morphine], line 1 15:48:26 Error in expression <): { [] spawn life_fnc_morphine; }; }; }; case (_item in ["apple","rabbit","sa> 15:48:26 Error position: <}; case (_item in ["apple","rabbit","sa> 15:48:26 Error Missing { 15:48:26 File core\pmenu\fn_useItem.sqf [life_fnc_useItem], line 140 15:48:26 Error in expression <): { [] spawn life_fnc_morphine; }; }; }; case (_item in ["apple","rabbit","sa> 15:48:26 Error position: <}; case (_item in ["apple","rabbit","sa> 15:48:26 Error Missing { -
Muss ich das nicht noch in der Config_vItems hinzufügen ?