Français Solved Problème avec la barre de soif sur mon serveur Altis Life

  • Auteur de la discussion Auteur de la discussion Symbiote
  • Date de début Date de début
La voila l'erreur, tu utilise pas les bons idc dans ton hudUpdate
Remplace ton fn_hudUpdate par :

[CODE lang="sql" title="Code"]#include "..\..\script_macros.hpp"
/*
File: fn_hudUpdate.sqf
Author: Rene Lerchberg & Don GHOST
Desc: Rene Lerchberg Hud
*/
disableSerialization;
if (isNull (uiNamespace getVariable ["playerHUD",displayNull])) then {[] call life_fnc_hudSetup;};
((uiNamespace getVariable ["playerHUD",displayNull]) displayCtrl 2416) ctrlSetText format["%1",round ((1 - (damage player)) * 100)];//gesundheit
((uiNamespace getVariable ["playerHUD",displayNull]) displayCtrl 2400) ctrlSetText format["%1",life_hunger];//hunger
((uiNamespace getVariable ["playerHUD",displayNull]) displayCtrl 2402) ctrlSetText format["%1",life_thirst];//durst
((uiNamespace getVariable ["playerHUD",displayNull]) displayCtrl 2403) ctrlSetText "www.MostWanted-rpg.de";
((uiNamespace getVariable ["playerHUD",displayNull]) displayCtrl 2404) ctrlSetText format["%1 | %2",name player, getPlayerUID player];
((uiNamespace getVariable ["playerHUD",displayNull]) displayCtrl 2406) ctrlSetText format["%1",life_carryWeight];//gewicht
((uiNamespace getVariable ["playerHUD",displayNull]) displayCtrl 2408) ctrlSetText format["%1",[life_cash] call life_fnc_numberText];
((uiNamespace getVariable ["playerHUD",displayNull]) displayCtrl 2417) ctrlSetText format["%1",west countSide playableUnits];//cop count
((uiNamespace getVariable ["playerHUD",displayNull]) displayCtrl 2418) ctrlSetText format["%1",independent countSide playableUnits];//med count
((uiNamespace getVariable ["playerHUD",displayNull]) displayCtrl 2419) ctrlSetText format["%1",civilian countSide playableUnits];//civ count
((uiNamespace getVariable ["playerHUD",displayNull]) displayCtrl 2420) ctrlSetText format["%1",east countSide playableUnits];//east count[/CODE]
 
La voila l'erreur, tu utilise pas les bons idc dans ton hudUpdate
Remplace ton fn_hudUpdate par :

[CODE lang="sql" title="Code"]#include "..\..\script_macros.hpp"
/*
File: fn_hudUpdate.sqf
Author: Rene Lerchberg & Don GHOST
Desc: Rene Lerchberg Hud
*/
disableSerialization;
if (isNull (uiNamespace getVariable ["playerHUD",displayNull])) then {[] call life_fnc_hudSetup;};
((uiNamespace getVariable ["playerHUD",displayNull]) displayCtrl 2416) ctrlSetText format["%1",round ((1 - (damage player)) * 100)];//gesundheit
((uiNamespace getVariable ["playerHUD",displayNull]) displayCtrl 2400) ctrlSetText format["%1",life_hunger];//hunger
((uiNamespace getVariable ["playerHUD",displayNull]) displayCtrl 2402) ctrlSetText format["%1",life_thirst];//durst
((uiNamespace getVariable ["playerHUD",displayNull]) displayCtrl 2403) ctrlSetText "www.MostWanted-rpg.de";
((uiNamespace getVariable ["playerHUD",displayNull]) displayCtrl 2404) ctrlSetText format["%1 | %2",name player, getPlayerUID player];
((uiNamespace getVariable ["playerHUD",displayNull]) displayCtrl 2406) ctrlSetText format["%1",life_carryWeight];//gewicht
((uiNamespace getVariable ["playerHUD",displayNull]) displayCtrl 2408) ctrlSetText format["%1",[life_cash] call life_fnc_numberText];
((uiNamespace getVariable ["playerHUD",displayNull]) displayCtrl 2417) ctrlSetText format["%1",west countSide playableUnits];//cop count
((uiNamespace getVariable ["playerHUD",displayNull]) displayCtrl 2418) ctrlSetText format["%1",independent countSide playableUnits];//med count
((uiNamespace getVariable ["playerHUD",displayNull]) displayCtrl 2419) ctrlSetText format["%1",civilian countSide playableUnits];//civ count
((uiNamespace getVariable ["playerHUD",displayNull]) displayCtrl 2420) ctrlSetText format["%1",east countSide playableUnits];//east count[/CODE]
Oups je tes envoyé le mauvais c'est celui la le bon : https://www.mediafire.com/file/cogzkj6xwtgnppa/fn_hudUpdate.sqf/file
Et je l'avais bien ajouter :)