Hallo zusammen,
hab da ein kleines Problem und werde leider aus den logs nicht schlau.
Hier die Log:
Spoiler anzeigen
1:22:13 Error in expression <
if (life_hunger <= 100) then
{
LIFEctrl(5718) ctrlSetText "textures\sonst\HUD\R>
1:22:13 Error position: <(5718) ctrlSetText "textures\sonst\HUD\R>
1:22:13 Error Missing ;
1:22:13 File mpmissions\__cur_mp.Altis\core\functions\fn_hudUpdate.sqf, line 19
1:22:13 Error in expression <
if (life_hunger <= 100) then
{
LIFEctrl(5718) ctrlSetText "textures\sonst\HUD\R>
1:22:13 Error position: <(5718) ctrlSetText "textures\sonst\HUD\R>
1:22:13 Error Missing ;
1:22:13 File mpmissions\__cur_mp.Altis\core\functions\fn_hudUpdate.sqf, line 19
1:22:13 Error in expression <rd dir da auch nicht helfen ;)"],"PLAIN"];
[[1,format["%1 hat versucht ALT + F4 >
1:22:13 Error position: <];
[[1,format["%1 hat versucht ALT + F4 >
1:22:13 Error Missing ;
Hier das Script:
Spoiler anzeigen
#include <macro.h>
disableSerialization;
private _ui = uiNameSpace getVariable ["playerHUD",displayNull];
if(isNull _ui) then
{
[] call life_fnc_hudSetup;
};
//Player HUD Icons
private _food = _ui displayCtrl 5718;
private _water = _ui displayCtrl 5716;
private _health = _ui displayCtrl 5719;
private _icon_food = _ui displayCtrl 5720;
private _icon_water = _ui displayCtrl 5721;
private _icon_health = _ui displayCtrl 5722;
if (life_hunger <= 100) then
{
LIFEctrl(5718) ctrlSetText "textures\sonst\HUD\Ring_8.paa";
};
if (life_hunger <= 87) then
{
LIFEctrl(5718) ctrlSetText "textures\sonst\HUD\Ring_7.paa";
};
if (life_hunger <= 75) then
{
LIFEctrl(5718) ctrlSetText "textures\sonst\HUD\Ring_6.paa";
};
if (life_hunger <= 62) then
{
LIFEctrl(5718) ctrlSetText "textures\sonst\HUD\Ring_5.paa";
};
if (life_hunger <= 50) then
{
LIFEctrl(5718) ctrlSetText "textures\sonst\HUD\Ring_4.paa";
};
if (life_hunger <= 37) then
{
LIFEctrl(5718) ctrlSetText "textures\sonst\HUD\Ring_3.paa";
};
if (life_hunger <= 25) then
{
LIFEctrl(5718) ctrlSetText "textures\sonst\HUD\Ring_2.paa";
};
if (life_hunger <= 12) then
{
LIFEctrl(5718) ctrlSetText "textures\sonst\HUD\Ring_1.paa";
};
if (life_hunger <= 0) then
{
LIFEctrl(5718) ctrlSetText "textures\sonst\HUD\Ring_0.paa";
};
// Trinken
if (life_thirst <= 100) then
{
LIFEctrl(5716) ctrlSetText "textures\sonst\HUD\Ring_8.paa";
};
if (life_thirst <= 87) then
{
LIFEctrl(5716) ctrlSetText "textures\sonst\HUD\Ring_7.paa";
};
if (life_thirst <= 75) then
{
LIFEctrl(5716) ctrlSetText "textures\sonst\HUD\Ring_6.paa";
};
if (life_thirst <= 62) then
{
LIFEctrl(5716) ctrlSetText "textures\sonst\HUD\Ring_5.paa";
};
if (life_thirst <= 50) then
{
LIFEctrl(5716) ctrlSetText "textures\sonst\HUD\Ring_4.paa";
};
if (life_thirst <= 37) then
{
LIFEctrl(5716) ctrlSetText "textures\sonst\HUD\Ring_3.paa";
};
if (life_thirst <= 25) then
{
LIFEctrl(5716) ctrlSetText "textures\sonst\HUD\Ring_2.paa";
};
if (life_thirst <= 12) then
{
LIFEctrl(5716) ctrlSetText "textures\sonst\HUD\Ring_1.paa";
};
if (life_thirst <= 0) then
{
LIFEctrl(5716) ctrlSetText "textures\sonst\HUD\Ring_0.paa";
};
if (damage player >= 0) then
{
LIFEctrl(5719) ctrlSetText "textures\sonst\HUD\Ring_8.paa";
};
if (damage player >= 0.1) then
{
LIFEctrl(5719) ctrlSetText "textures\sonst\HUD\Ring_7.paa";
};
if (damage player >= 0.2) then
{
LIFEctrl(5719) ctrlSetText "textures\sonst\HUD\Ring_6.paa";
};
if (damage player >= 0.3) then
{
LIFEctrl(5719) ctrlSetText "textures\sonst\HUD\Ring_5.paa";
};
if (damage player >= 0.5) then
{
LIFEctrl(5719) ctrlSetText "textures\sonst\HUD\Ring_4.paa";
};
if (damage player >= 0.6) then
{
LIFEctrl(5719) ctrlSetText "textures\sonst\HUD\Ring_3.paa";
};
if (damage player >= 0.7) then
{
LIFEctrl(5719) ctrlSetText "textures\sonst\HUD\Ring_2.paa";
};
if (damage player >= 0.8) then
{
LIFEctrl(5719) ctrlSetText "textures\sonst\HUD\Ring_1.paa";
};
if (damage player >= 1) then
{
LIFEctrl(5719) ctrlSetText "textures\sonst\HUD\Ring_0.paa";
};
Für mich heißt das dass irgendwo ein ; fehlt, nur sind doch alle da?
Hoffe mir kann wer helfen
Viele Grüße
Domi