1. Dashboard
  2. Forum
    1. Unerledigte Themen
  3. Downloads
  4. Galerie
    1. Alben
  5. Toolbox
    1. Passwort Generator
    2. Portchecker
  6. Mitglieder
    1. Mitgliedersuche
    2. Benutzer online
    3. Trophäen
    4. Team
Mo: 30 Juni 2025
  • Anmelden oder registrieren
  • Suche
Alles
  • Alles
  • Artikel
  • Forum
  • Dateien
  • Seiten
  • Bilder
  • Erweiterte Suche

Schön, dass du den Weg zu NodeZone.net gefunden hast! Aktuell bist du nicht angemeldet und kannst deshalb nur eingeschränkt auf unsere Community zugreifen. Um alle Funktionen freizuschalten, spannende Inhalte zu entdecken und dich aktiv einzubringen, registriere dich jetzt kostenlos oder melde dich mit deinem Account an.

Anmelden oder registrieren
    1. Nodezone.net Community
    2. Mitglieder
    3. Alex

    Beiträge von Alex

    • Nicht definierte Variable: "_pump"

      • Alex
      • 1. Mai 2019 um 11:02
      Code
      10:58:41 Error in expression <mp") then {
      _pump setFuelCargo 0;
      _pump addAction [localize "STR_Action_Pump", l>
      10:58:41   Error position: <addAction [localize "STR_Action_Pump", l>
      10:58:41   Error Typ Zahl, erwartet Bool
      10:58:41 File mpmissions\__CUR_MP.Malden\core\fn_setupStationService.sqf, line 43
    • Nicht definierte Variable: "_pump"

      • Alex
      • 29. April 2019 um 20:48
      Code
      /*
          File: fn_setupStationService.sqf
          Author: NiiRoZz
          Edit: BoGuu - Added Tanoa Stations
      
          Description:
          Add action fuel action in Station Service.
      
          put function in init file then execute it with:
          call getFuelpumps;
          getFuelpumps =
          {
              _pos = getArray(configFile >> "CfgWorlds" >> worldName >> "centerPosition");
              _Station = nearestobjects [_pos,["Land_fs_feed_F","Land_FuelStation_Feed_F"], 25000];
              _br = toString [13, 10];
              _tab = toString [9];
      
              _TexteSortie = "_NiiRoZz_Station_Essence = [" + _br;
      
              {
                  _Array = [getpos _x];
                  _TexteSortie = _TexteSortie + _tab + (str _Array);
                  _TexteSortie = if (_forEachIndex < ((count _Station) - 1)) then {_TexteSortie + ", " + _br} else {_TexteSortie + _br};
              } forEach _Station;
              _TexteSortie = _TexteSortie + "];";
              hint "Completed";
              copyToClipboard _TexteSortie;
          };
      */
      
      [[[5507.06,3498.76,-0.0244446], [5505.3,3499.18,-0.029213], [5503.41,3499.63,-0.0339737], [8041.43,4027.86,-0.0129128], [8046.69,4023.45,-0.0129128], 
      [8046.92,4034.63,-0.0129128], [8052.17,4030.21,-0.0129128], [8052.32,4041.59,-0.0129128], [8057.57,4037.17,-0.0129128], [7046.78,7050.48,-0.14489], 
      [7046.75,7052.38,-0.166283], [7046.78,7054.36,-0.190231], [10062.8,3988.46,-6.67572e-005], [10063,3994.94,6.29425e-005], [3230.32,6289.84,-0.118713], 
      [3228.68,6290.45,-0.118118], [3226.7,6291.02,-0.119003], [7219.06,7769.21,-0.0842285], [7224.13,7772.29,-0.0842438], [7214.63,7776.75,-0.0842438], 
      [7219.71,7779.83,-0.0842438], [6633.08,8806.81,-0.0259476], [11599.5,4477.1,-1.33514e-005], [5111.19,9061.96,-0.105164]],[""]] params ["_maldenPositions","_altisPositions"];
      
      private _stationPositions = [[["Altis", _altisPositions], ["Malden", _maldenPositions]]] call TON_fnc_terrainSort;
      
      {
          private _pump = nearestObjects [_x,["Land_FuelStation_01_pump_malevil_F","Land_fs_feed_F","Land_FuelStation_01_pump_F","Land_FuelStation_02_pump_F"],5] select 0;
          if(!isNil "_pump") then {
              _pump setFuelCargo 0;
              _pump addAction [localize "STR_Action_Pump", life_fnc_fuelStatOpen, 1, 3, true, true, "", '_this distance _target < 5 && cursorObject isEqualTo _target'];
          } else {diag_log format["fn_setUpStations: _pump not defined on _x=%1",_x];}
      } count _stationPositions;
      Alles anzeigen
    • Nicht definierte Variable: "_pump"

      • Alex
      • 29. April 2019 um 17:12
      Code
      17:11:40 Error in expression <mp") then {
      _pump setFuelCargo 0;
      _pump addAction [localize "STR_Action_Pump", l>
      17:11:40   Error position: <addAction [localize "STR_Action_Pump", l>
      17:11:40   Error Typ Zahl, erwartet Bool
      17:11:40 File mpmissions\__CUR_MP.Malden\core\fn_setupStationService.sqf, line 43
    • Nicht definierte Variable: "_pump"

      • Alex
      • 24. April 2019 um 17:39
      Code: Client Log
      17:11:23 Error in expression <uelStation_02_pump_F"],5] select 0;
      if(!isNil _pump) then {
      _pump setFuelCargo 0>
      17:11:23   Error position: <isNil _pump) then {
      _pump setFuelCargo 0>
      17:11:23   Error isnil: Typ Objekt, erwartet Zeichenfolge,code
      17:11:23 File mpmissions\__CUR_MP.Malden\core\fn_setupStationService.sqf, line 41
    • Nicht definierte Variable: "_arguments"

      • Alex
      • 21. April 2019 um 16:59

      ja danke, habe ich jetzt gefixt. statt kh1 einfach "kh1"

    • Nicht definierte Variable: "_pump"

      • Alex
      • 21. April 2019 um 14:05
      Code: fn_setupStationService
      /*
          File: fn_setupStationService.sqf
          Author: NiiRoZz
          Edit: BoGuu - Added Tanoa Stations
      
          Description:
          Add action fuel action in Station Service.
      
          put function in init file then execute it with:
          call getFuelpumps;
          getFuelpumps =
          {
              _pos = getArray(configFile >> "CfgWorlds" >> worldName >> "centerPosition");
              _Station = nearestobjects [_pos,["Land_fs_feed_F","Land_FuelStation_Feed_F"], 25000];
              _br = toString [13, 10];
              _tab = toString [9];
      
              _TexteSortie = "_NiiRoZz_Station_Essence = [" + _br;
      
              {
                  _Array = [getpos _x];
                  _TexteSortie = _TexteSortie + _tab + (str _Array);
                  _TexteSortie = if (_forEachIndex < ((count _Station) - 1)) then {_TexteSortie + ", " + _br} else {_TexteSortie + _br};
              } forEach _Station;
              _TexteSortie = _TexteSortie + "];";
              hint "Completed";
              copyToClipboard _TexteSortie;
          };
      */
      
      private _maldenPositions = [
          [5507.06,3498.76,-0.0244446], 
          [5505.3,3499.18,-0.029213], 
          [5503.41,3499.63,-0.0339737], 
          [8041.43,4027.86,-0.0129128], 
          [8046.69,4023.45,-0.0129128], 
          [8046.92,4034.63,-0.0129128], 
          [8052.17,4030.21,-0.0129128], 
          [8052.32,4041.59,-0.0129128], 
          [8057.57,4037.17,-0.0129128], 
          [7046.78,7050.48,-0.14489], 
          [7046.75,7052.38,-0.166283], 
          [7046.78,7054.36,-0.190231], 
          [10062.8,3988.46,-6.67572e-005], 
          [10063,3994.94,6.29425e-005], 
          [3230.32,6289.84,-0.118713], 
          [3228.68,6290.45,-0.118118], 
          [3226.7,6291.02,-0.119003], 
          [7219.06,7769.21,-0.0842285], 
          [7224.13,7772.29,-0.0842438], 
          [7214.63,7776.75,-0.0842438], 
          [7219.71,7779.83,-0.0842438], 
          [6633.08,8806.81,-0.0259476], 
          [11599.5,4477.1,-1.33514e-005], 
          [5111.19,9061.96,-0.105164]
      ];
      
      private _altisPositions = [
          [9205.75,12112.2,-0.0487232],
          [11831.6,14155.9,-0.0342016],
          [12024.7,15830,-0.0298138],
          [12026.6,15830.1,-0.0342979],
          [12028.4,15830,-0.0388737],
          [9025.78,15729.4,-0.0206528],
          [9023.75,15729,-0.0271606],
          [9021.82,15728.7,-0.0293427],
          [16750.9,12513.1,-0.0525198],
          [6798.15,15561.6,-0.0441437],
          [6198.83,15081.4,-0.0912418],
          [14173.2,16541.8,-0.0946102],
          [5023.26,14429.6,-0.0978947],
          [5019.68,14436.7,-0.0114822],
          [4001.12,12592.1,-0.0966625],
          [17417.2,13936.7,-0.10652],
          [3757.14,13477.9,-0.0540276],
          [3757.54,13485.9,-0.010498],
          [16875.2,15469.4,0.037343],
          [16871.7,15476.6,0.010293],
          [8481.69,18260.7,-0.0266876],
          [15297.1,17565.9,-0.283808],
          [14221.4,18302.5,-0.0697155],
          [15781,17453.2,-0.285281],
          [19961.3,11454.6,-0.0349236],
          [19965.1,11447.6,-0.0483704],
          [5769,20085.7,-0.0156555],
          [21230.4,7116.56,-0.0604229],
          [20784.8,16665.9,-0.0521202],
          [20789.6,16672.3,-0.0213318],
          [23379.4,19799,-0.0544052],
          [25701.2,21372.6,-0.0774155]
      ];
      
      private _tanoaPositions = [
          [7978.23,7419.24,-0.100807],
          [7976.92,7427.11,-0.058516],
          [5173.94,8806.35,-0.0822775],
          [8318.9,9708.81,-0.0886936],
          [8320.71,9712.02,-0.0936089],
          [5388.58,4090.7,-0.0951052],
          [5379.5,4092.98,-0.0942526],
          [10826.8,6489.7,-0.082561],
          [8970.37,10332.2,-0.0989342],
          [11146.1,5152,-0.0805874],
          [11154,5152.43,-0.0809298],
          [10935.1,9856.06,-0.129646],
          [10940.8,9855.39,-0.122383],
          [2462.99,7430.69,-0.0870638],
          [2451.51,7434.7,-0.0931244],
          [8494.36,12431.9,-0.110229],
          [8493.01,12437.9,-0.106827],
          [8492.14,12441.6,-0.0828552],
          [5594.15,12508.2,-0.0947819],
          [11631,2998.85,-0.0782437],
          [11642,2990.83,-0.0782394],
          [3029.45,11316.1,-0.0828028],
          [2137.26,3360.77,-0.0583258],
          [2132.29,3360.43,-0.0607367],
          [8952.38,13678,-0.0624466],
          [8954.36,13678,-0.0624466],
          [8956.19,13677.8,-0.0624466],
          [14364.7,8743.01,-0.0650101],
          [14260.9,11513,-0.114521],
          [14264.8,11508.9,-0.108963],
          [6886.99,7490.55,0],
          [7366.7,7995.42,-0.212462],
          [7358.5,7998.4,-0.190624],
          [7369.15,8002.09,-0.129763],
          [7360.96,8005.08,-0.171917],
          [5771.25,4239.42,-0.205085],
          [5776.41,4232.31,-0.232585],
          [5767.14,4236.94,-0.182347],
          [5781.14,4224.93,-0.229755],
          [5771.14,4229.01,-0.235736],
          [5775.74,4221.55,-0.232986],
          [5409.42,9905.04,0.00515461],
          [5403.54,9905.04,0.00549698],
          [5409.69,9913.75,0.00508261],
          [5403.81,9913.74,0.00502348],
          [5681.72,10164.6,-0.0340471],
          [5685.9,10173,-0.0219851],
          [5677.78,10173.8,-0.0185199],
          [5683.21,10182,-0.0282073],
          [5810.65,10816.9,0.0893035],
          [5801.93,10816.8,0.0450912],
          [5793.12,10817,0.0373325],
          [5810.71,10825.1,0.0521221],
          [5801.99,10825,0.039825],
          [5793.18,10825.1,0.0337515],
          [12613.3,7582.82,-0.264584],
          [12618.1,7580.01,-0.330997],
          [12617.5,7590.52,-0.225117],
          [12622.3,7587.7,-0.245724],
          [6600.12,13076.3,-0.249989],
          [6592,13079.6,-0.231892],
          [6602.45,13082,-0.230906],
          [6583.86,13082.9,-0.230913],
          [6594.32,13085.3,-0.230906],
          [6586.18,13088.6,-0.230906],
          [11686.6,2267.25,-0.208622],
          [11694.3,2271.39,-0.203085],
          [11689.9,2260.98,-0.205484],
          [11697.6,2265.13,-0.199961],
          [9953.85,13467,-0.23254],
          [9960.31,13466.6,-0.23254],
          [9954.45,13475.7,-0.23254],
          [9960.92,13475.4,-0.23254],
          [9954.69,13484.5,-0.23254],
          [9961.15,13484.2,-0.23254],
          [1873.69,12121.5,-0.248567],
          [1874.1,12127.6,-0.203133],
          [1864.93,12122,-0.331924],
          [1865.37,12128,-0.236609],
          [11618.7,13053,-0.255869],
          [11627,13050.4,-0.237558],
          [11635.3,13047.4,-0.229898],
          [11620.6,13058.4,-0.237006],
          [11629,13055.8,-0.232919],
          [11637.2,13052.8,-0.228891]
      ];
      
      private _stationPositions = [[["Altis", _altisPositions], ["Tanoa", _tanoaPositions], ["Malden", _maldenPositions]]] call TON_fnc_terrainSort;
      
      {
          private _pump = nearestObjects [_x,["Land_FuelStation_01_pump_malevil_F","Land_fs_feed_F","Land_FuelStation_01_pump_F","Land_FuelStation_02_pump_F"],5] select 0;
          _pump setFuelCargo 0;
          _pump addAction [localize "STR_Action_Pump", life_fnc_fuelStatOpen, 1, 3, true, true, "", '_this distance _target < 5 && cursorObject isEqualTo _target'];
          false
      } count _stationPositions;
      Alles anzeigen

      Dateien

      Arma3_x64_2019-04-21_12-51-12.rpt 3,2 kB – 184 Downloads arma3server_x64_2019-04-21_13-51-14.rpt 57,51 kB – 180 Downloads
    • Nicht definierte Variable: "_arguments"

      • Alex
      • 14. April 2019 um 13:50

      kh1 ist lediglich dafür da, damit der switch entscheiden kann welche position er nimmt, genauer definiert ist es nicht.

    • Nicht definierte Variable: "_arguments"

      • Alex
      • 14. April 2019 um 13:25

      _arguments = _this select 3

      gibt den selben Fehler aus.

    • Nicht definierte Variable: "_arguments"

      • Alex
      • 14. April 2019 um 11:30

      Hallo, folgendes Problem: Mir wird ständig gesagt, dass die _arguments Variable nicht definiert ist, obwohl das humbug ist.

      Code: fn_useElevator.sqf
      #include "..\..\script_macros.hpp"
      /*
          File: fn_useElevator.sqf
          Author: Alex
      
          Description:
          Uses the elevator
      */
      
      private ["_target", "_caller", "_actionId", "_arguments", "_newPosition"];
      params ["_target", "_caller", "_actionId", "_arguments"];
      _target = _this select 0;
      _caller = _this select 1;
      _arguments = (_this select 3) select 0;
      _newPosition = [];
      
      if (life_action_inUse) exitWith {};
      if !(isNull objectParent player) exitWith {};
      if (life_istazed) exitWith {};
      if (life_isknocked) exitWith {};
      
      switch (_arguments) do 
      {
          case "kh1": {_newPosition = [8171.92,10052.9,52.609];};
          case "kh2": {_newPosition = [8165.53,10039.9,2.47192];};
      };
      
      life_action_inUse = true;
      titleText ["", "BLACK OUT", 0.3];
      sleep 0.3;
      
      _caller hideObjectGlobal true;
      playSound "fahrstuhl";
      sleep 5;
      
      _caller setPos _newPosition;
      _caller hideObjectGlobal false;
      
      titleText ["", "BLACK IN", 0.3];
      life_action_inUse = false;
      Alles anzeigen

      Init:

      this addAction ["Aufzug benutzen",life_fnc_useElevator,kh1];

      Dateien

      arma3server_x64_2019-04-14_11-21-37.rpt 54,71 kB – 167 Downloads Arma3_x64_2019-04-14_11-00-23.rpt 70,53 kB – 168 Downloads
    • life_session_completed nicht definierte Variable

      • Alex
      • 10. April 2019 um 23:37

      jup

    • life_session_completed nicht definierte Variable

      • Alex
      • 10. April 2019 um 22:25

      achso ja, da hinter fehlte ein life_sirenWarning_Active = true;

      danke :)

    • life_session_completed nicht definierte Variable

      • Alex
      • 10. April 2019 um 14:34

      So, habe die Mission zur .pbo gepackt, trotzdem gleiches Problem (Die Stringfehler sind jetzt weg)

      Dateien

      Arma3_x64_2019-04-10_13-51-27.rpt 7,32 MB – 158 Downloads
    • life_session_completed nicht definierte Variable

      • Alex
      • 10. April 2019 um 13:59

      Ich find auf anhieb keinen fehler. Ist im txt format weil ich die andere .xml dateiendung nicht hochladen kann

      Dateien

      stringtable.txt 679,98 kB – 184 Downloads
    • life_session_completed nicht definierte Variable

      • Alex
      • 9. April 2019 um 20:32

      Hier bitte

      Dateien

      configuration.sqf 3,35 kB – 204 Downloads Arma3_x64_2019-04-06_16-26-05.rpt 15,49 MB – 204 Downloads
    • life_session_completed nicht definierte Variable

      • Alex
      • 6. April 2019 um 16:55
      Code
      16:50:59   Error Nicht definierte Variable in Ausdruck: life_session_completed
      16:50:59 File mpmissions\__CUR_MP.Malden\core\init.sqf, line 44
      16:50:59 Error in expression <
      [] call SOCK_fnc_dataQuery;
      waitUntil {life_session_completed};
      0 cutText[local>
      16:50:59   Error position: <life_session_completed};
      0 cutText[local>

      Hallo, ich kriege diese Fehlermeldung über den Client Log und hocke dann im schwarzen Bildschirm mit >Empfange Daten vom Server fest.

      Code: fn_requestReceived.sqf
      #include "..\..\script_macros.hpp"
      /*
          File: fn_requestReceived.sqf
          Author: Bryan "Tonic" Boardwine
      
          Description:
          Called by the server saying that we have a response so let's
          sort through the information, validate it and if all valid
          set the client up.
      */
      private _count = count _this;
      life_session_tries = life_session_tries + 1;
      if (life_session_completed) exitWith {}; //Why did this get executed when the client already initialized? Fucking arma...
      if (life_session_tries > 3) exitWith {cutText[localize "STR_Session_Error","BLACK FADED"]; 0 cutFadeOut 999999999;};
      
      0 cutText [localize "STR_Session_Received","BLACK FADED"];
      0 cutFadeOut 9999999;
      
      //Error handling and junk..
      if (isNil "_this") exitWith {[] call SOCK_fnc_insertPlayerInfo;};
      if (_this isEqualType "") exitWith {[] call SOCK_fnc_insertPlayerInfo;};
      if (count _this isEqualTo 0) exitWith {[] call SOCK_fnc_insertPlayerInfo;};
      if ((_this select 0) isEqualTo "Error") exitWith {[] call SOCK_fnc_insertPlayerInfo;};
      if (!(getPlayerUID player isEqualTo (_this select 0))) exitWith {[] call SOCK_fnc_dataQuery;};
      
      //Lets make sure some vars are not set before hand.. If they are get rid of them, hopefully the engine purges past variables but meh who cares.
      if (!isServer && (!isNil "life_adminlevel" || !isNil "life_coplevel" || !isNil "life_donorlevel")) exitWith {
          [profileName,getPlayerUID player,"VariablesAlreadySet"] remoteExecCall ["SPY_fnc_cookieJar",RSERV];
          [profileName,format ["Variables set before client initialization...\nlife_adminlevel: %1\nlife_coplevel: %2\nlife_donorlevel: %3",life_adminlevel,life_coplevel,life_donorlevel]] remoteExecCall ["SPY_fnc_notifyAdmins",RCLIENT];
          sleep 0.9;
          failMission "SpyGlass";
      };
      
      //Parse basic player information.
      CASH = parseNumber (_this select 2);
      BANK = parseNumber (_this select 3);
      CONST(life_adminlevel,(_this select 4));
      if (LIFE_SETTINGS(getNumber,"donor_level") isEqualTo 1) then {
          CONST(life_donorlevel,(_this select 5));
      } else {
          CONST(life_donorlevel,0);
      };
      
      //Loop through licenses
      if (count (_this select 6) > 0) then {
          {missionNamespace setVariable [(_x select 0),(_x select 1)];} forEach (_this select 6);
      };
      
      //Parse side specific information.
      switch (playerSide) do {
          case west: {
              CONST(life_coplevel,(_this select 7));
              CONST(life_medicLevel,0);
              life_blacklisted = _this select 9;
              if (LIFE_SETTINGS(getNumber,"save_playerStats") isEqualTo 1) then {
                  life_hunger = ((_this select 10) select 0);
                  life_thirst = ((_this select 10) select 1);
                  player setDamage ((_this select 10) select 2);
              };
          };
      
          case civilian: {
              life_is_arrested = _this select 7;
              CONST(life_coplevel, 0);
              CONST(life_medicLevel, 0);
              life_houses = _this select (_count - 2);
              if (LIFE_SETTINGS(getNumber,"save_playerStats") isEqualTo 1) then {
                  life_hunger = ((_this select 9) select 0);
                  life_thirst = ((_this select 9) select 1);
                  player setDamage ((_this select 9) select 2);
              };
      
              //Position
              if (LIFE_SETTINGS(getNumber,"save_civilian_position") isEqualTo 1) then {
                  life_is_alive = _this select 10;
                  life_civ_position = _this select 11;
                  if (life_is_alive) then {
                      if !(count life_civ_position isEqualTo 3) then {diag_log format ["[requestReceived] Bad position received. Data: %1",life_civ_position];life_is_alive =false;};
                      if (life_civ_position distance (getMarkerPos "respawn_civilian") < 300) then {life_is_alive = false;};
                  };
              };
      
              {
                  _house = nearestObject [(call compile format ["%1",(_x select 0)]), "House"];
                  life_vehicles pushBack _house;
              } forEach life_houses;
      
              life_gangData = [_this select (_count - 4),_this select (_count - 3)];
              if(!(life_gangData isEqualTo [-1,-1])) then {
                  [(life_gangData select 0)] spawn life_fnc_gang_findGang;
              } else {
                  [player] join grpNull;
                  player setVariable ["gang_init_done",true,true];
              };
              [] spawn life_fnc_initHouses;
          };
      
          case independent: {
              CONST(life_medicLevel,(_this select 7));
              CONST(life_coplevel,0);
              if (LIFE_SETTINGS(getNumber,"save_playerStats") isEqualTo 1) then {
                  life_hunger = ((_this select 9) select 0);
                  life_thirst = ((_this select 9) select 1);
                  player setDamage ((_this select 9) select 2);
              };
          };
      };
      
      life_gear = _this select 8;
      call life_fnc_loadGear;
      
      if (count (_this select (_count - 1)) > 0) then {
          {life_vehicles pushBack _x;} forEach (_this select (_count - 1));
      };
      
      life_session_completed = true;
      Alles anzeigen
      Code: init.sqf
      #include "..\script_macros.hpp"
      /*
          File: init.sqf
          Author: Bryan "Tonic" Boardwine
          Description:
          Master client initialization file
      */
      diag_log "----------------------------------------------------------------------------------------------------";
      diag_log "--------------------------------- Starting Malden Life Client Init ----------------------------------";
      diag_log format["------------------------------------------ Version %1 -------------------------------------------",(LIFE_SETTINGS(getText,"framework_version"))];
      diag_log "----------------------------------------------------------------------------------------------------";
      
      0 cutText[localize "STR_Init_ClientSetup","BLACK FADED",99999999];
      _timeStamp = diag_tickTime;
      
      waitUntil {!isNull (findDisplay 46)};
      [] call compile preprocessFileLineNumbers "core\clientValidator.sqf";
      enableSentences false;
      
      diag_log "[Life Client] Initialization Variables";
      [] call compile preprocessFileLineNumbers "core\configuration.sqf";
      diag_log "[Life Client] Variables initialized";
      
      diag_log "[Life Client] Setting up Eventhandlers";
      [] call life_fnc_setupEVH;
      diag_log "[Life Client] Eventhandlers completed";
      
      diag_log "[Life Client] Setting up user actions";
      [] call life_fnc_setupActions;
      diag_log "[Life Client] User actions completed";
      
      diag_log "[Life Client] Waiting for the server to be ready...";
      waitUntil {!isNil "life_server_isReady" && {!isNil "life_server_extDB_notLoaded"}};
      
      if (life_server_extDB_notLoaded) exitWith {
          0 cutText [localize "STR_Init_ExtdbFail","BLACK FADED",99999999];
      };
      
      waitUntil {life_server_isReady};
      diag_log "[Life Client] Server loading completed ";
      0 cutText [localize "STR_Init_ServerReady","BLACK FADED",99999999];
      
      [] call SOCK_fnc_dataQuery;
      waitUntil {life_session_completed};
      0 cutText[localize "STR_Init_ClientFinish","BLACK FADED",99999999];
      
      [] spawn life_fnc_escInterupt;
      
      switch (playerSide) do {
          case west: {
              life_paycheck = LIFE_SETTINGS(getNumber,"paycheck_cop");
              [] call life_fnc_initCop;
          };
          case civilian: {
              life_paycheck = LIFE_SETTINGS(getNumber,"paycheck_civ");
              [] call life_fnc_initCiv;
          };
          case independent: {
              life_paycheck = LIFE_SETTINGS(getNumber,"paycheck_med");
              [] call life_fnc_initMedic;
          };
      };
      CONSTVAR(life_paycheck);
      
      player setVariable ["restrained", false, true];
      player setVariable ["Escorting", false, true];
      player setVariable ["transporting", false, true];
      player setVariable ["playerSurrender", false, true];
      player setVariable ["realname", profileName, true];
      
      diag_log "[Life Client] Past Settings Init";
      [] execFSM "core\fsm\client.fsm";
      diag_log "[Life Client] Executing client.fsm";
      
      (findDisplay 46) displayAddEventHandler ["KeyDown", "_this call life_fnc_keyHandler"];
      [player, life_settings_enableSidechannel, playerSide] remoteExecCall ["TON_fnc_manageSC", RSERV];
      
      [] call life_fnc_hudSetup;
      [] spawn life_fnc_survival;
      
      0 cutText ["","BLACK IN"];
      
      [] spawn {
          for "_i" from 0 to 1 step 0 do {
              waitUntil {(!isNull (findDisplay 49)) && {(!isNull (findDisplay 602))}}; // Check if Inventory and ESC dialogs are open
              (findDisplay 49) closeDisplay 2; // Close ESC dialog
              (findDisplay 602) closeDisplay 2; // Close Inventory dialog
          };
      };
      
      addMissionEventHandler ["EachFrame", life_fnc_playerTags];
      addMissionEventHandler ["EachFrame", life_fnc_revealObjects];
      
      if (LIFE_SETTINGS(getNumber,"enable_fatigue") isEqualTo 0) then {player enableFatigue false;};
      if (LIFE_SETTINGS(getNumber,"pump_service") isEqualTo 1) then {
          [] execVM "core\fn_setupStationService.sqf";
      };
      
      life_fnc_RequestClientId = player;
      publicVariableServer "life_fnc_RequestClientId"; 
      
      /*
          https://feedback.bistudio.com/T117205 - disableChannels settings cease to work when leaving/rejoining mission
          Universal workaround for usage in a preInit function. - AgentRev
          Remove if Bohemia actually fixes the issue.
      */
      {
          _x params [["_chan",-1,[0]], ["_noText","false",[""]], ["_noVoice","false",[""]]];
      
          _noText = [false,true] select ((["false","true"] find toLower _noText) max 0);
          _noVoice = [false,true] select ((["false","true"] find toLower _noVoice) max 0);
      
          _chan enableChannel [!_noText, !_noVoice];
      
      } forEach getArray (missionConfigFile >> "disableChannels");
      
      if (life_HC_isActive) then {
          [getPlayerUID player, player getVariable ["realname", name player]] remoteExec ["HC_fnc_wantedProfUpdate", HC_Life];
      } else {
          [getPlayerUID player, player getVariable ["realname", name player]] remoteExec ["life_fnc_wantedProfUpdate", RSERV];
      };
      
      0 call life_fnc_gang_initFunctions;
      
      diag_log "----------------------------------------------------------------------------------------------------";
      diag_log format ["               End of Malden Life Client Init :: Total Execution Time %1 seconds ",(diag_tickTime - _timeStamp)];
      diag_log "----------------------------------------------------------------------------------------------------";
      Alles anzeigen

      Dort ist die Variable

      Dateien

      arma3server_x64_2019-04-06_16-49-12.rpt 54,35 kB – 148 Downloads
    • Array von Config_Clothing erweitern

      • Alex
      • 10. März 2019 um 17:01

      Hallo,

      ich wollte das Array von der Config_Clothing erweitern. Am Ende soll eine Zahl stehen, die auch im Shop angezeigt wird. Sollte so aussehen:

      0: Kein DLC

      1: APEX Dlc

      2: Karts DLC

      usw. Aber das in eine Textform zu bringen ist ansich kein Problem, ich will erstmal nur die Zahlen haben. Jedoch bleibt im Shop die Zahl 0 stehen, obwohl hinter einem Eintrag z.B. die 1 steht. Die dazugehörigen DAteien habe ich angehangen, vielleicht kann mir ja jemand helfen.


      802f34904217473143b21bbf88613c81.png

      Dateien

      fn_changeClothes.sqf 1,87 kB – 176 Downloads fn_clothingFilter.sqf 2,62 kB – 176 Downloads clothing.txt 4,54 kB – 178 Downloads Config_Clothing.txt 17,65 kB – 202 Downloads
    • Spieler-ID von Datenbank auslesen

      • Alex
      • 9. März 2019 um 22:49

      Ich habe jetzt nochmal alles gelöscht - was genau soll ich machen? Ich versuche es ja selbst, aber es klappt einfach nicht. Ich habe auch schon alle anderen Fehler gelöst. Zum Verständnis nochmal, ich möchte das bei mir unten links der Name und die Datenbank ID angezeigt wird, sprich z.B. Hans Peter (532)

      Den Namen lese ich mit profileName aus, aber wie die ID ausgelesen wird/werden soll, weiß ich nicht.

      Meine hud_stats.hpp sieht derzeit so aus:

      Code: hud_stats.hpp
      /////////////////////////////////////////////////////////////////
      /////////// This File was Edited by GUI D3V by Shinji ///////////
      /////////////////////////////////////////////////////////////////
      #define ST_CENTER 0x02
      #define IDC_LIFE_BAR_FOOD_RING 160501
      #define IDC_LIFE_BAR_WATER_RING 160502
      #define IDC_LIFE_BAR_HEALTH_RING 160503
      
      class playerHUD {
         idd = -1;
         name = "playerHUD";
         movingenable = false;
         enablesimulation = true;
         onload = "uiNamespace setVariable ['playerHUD',_this select 0]";
         duration = 10e10;
         fadein = 0;
         fadeout = 0;
         class controlsBackground
         {
              class Life_RscPicture_Logo : Life_RscPicture
                 {
                     idc = 24234234;
                     text = "textures\hud\logo_weiss.paa";
                     x = 0.8580435 * safezoneW + safezoneX;
                     w = 0.1 * safezoneW;
                     h = 0.18 * safezoneH;
                     y = 0.793510324483776 * safezoneH + safezoneY;
                 };
                 class Life_Playername_Corner : Life_RscText
                 {
                     type = 0;
                     idc = 9786687;
                     style = 0;
                     x = 0.01 * safezoneW + safezoneX;
                     y = 0.97 * safezoneH + safezoneY;
                     w = 0.35587 * safezoneW;
                     h = 0.022 * safezoneH;
                     sizeex = 0.048;
                     size = 1;
                     font = "PuristaBold";
                     colorbackground[] = {0,0,0,0};
                     colortext[] = {1,1,1,1};
                     shadow = true;
                     text = "Hier sollte der Spielername stehen";
                 };
         };
         class controls
         {
             class life_RscPicture0 : life_RscPicture
             {
                 text = "";
                 x = 0.523958333333333 * safezoneW + safezoneX;
                 y = 0.901401179941003 * safezoneH + safezoneY;
                  w = 0.0331042 * safezoneW;
                  h = 0.0589743 * safezoneH;
                 idc = IDC_LIFE_BAR_HEALTH_RING;
             };
             class life_RscPicture00 : life_RscPicture
             {
                 text = "";
                 x = 0.457083333333333 * safezoneW + safezoneX;
                 y = 0.901401179941003 * safezoneH + safezoneY;
                  w = 0.0331042 * safezoneW;
                  h = 0.0589743 * safezoneH;
      
                 idc = IDC_LIFE_BAR_WATER_RING;
             };
             class life_RscPicture000 : life_RscPicture
             {
                 text = "";
                 x = 0.393541666666667 * safezoneW + safezoneX;
                 y = 0.901401179941003 * safezoneH + safezoneY;
                     w = 0.0331042 * safezoneW;
                  h = 0.0589743 * safezoneH;
      
                 idc = IDC_LIFE_BAR_FOOD_RING;
             };
             
                    class life_RscPicture10 : life_RscPicture
             {
                 text = "textures\hud\health.paa";
                 x = 0.457083333333333 * safezoneW + safezoneX;
                 y = 0.901401179941003 * safezoneH + safezoneY;
                 w = 0.038 * safezoneW;
                 h = 0.053 * safezoneH;
                 idc = -1;
             };
             class life_RscPicture1 : life_RscPicture
             {
                 text = "textures\hud\durst.paa";
                 x = 0.523958333333333 * safezoneW + safezoneX;
                 y = 0.901401179941003 * safezoneH + safezoneY;
                 w = 0.038 * safezoneW;
                 h = 0.053 * safezoneH;
                 idc = -1;
             };
             class life_RscPicture100 : life_RscPicture
             {
                 text = "textures\hud\hunger.paa";
                 x = 0.393541666666667 * safezoneW + safezoneX;
                 y = 0.901401179941003 * safezoneH + safezoneY;
                 w = 0.038 * safezoneW;
                 h = 0.053 * safezoneH;
                 idc = -1;
             };
         };
      };
      /////////////////////////////////////////////////////////////////
      ////////////////////////// FILE END /////////////////////////////
      /////////////////////////////////////////////////////////////////
      Alles anzeigen
    • Windows Menü funktioniert nicht

      • Alex
      • 9. März 2019 um 22:41

      Das mit dem Admintool wurde durch AustrianNoob seeehr schnell gefixt, danke dafür. War ein fehlender Eintrag in der query Request.

      Das mit der Windowstaste lag an der pbo -.-. Dieses Spiel ist echt unglaublich. Danke!

    • Windows Menü funktioniert nicht

      • Alex
      • 9. März 2019 um 12:40

      Hallo,

      ich habe keine Ahnung was ich machen soll, das Admintool von AllianceApps ist ausgefallen und das Hauptproblem: das Windowsmenü geht nicht, aber auch nur über die Windowstaste; die Aktion 10 führt er normal aus.

      Code: fn_keyhandler.sqf
      #include "..\..\script_macros.hpp"
      /*
      *    File: fn_keyHandler.sqf
      *    Author: Bryan "Tonic" Boardwine
      *
      *    Description:
      *    Main key handler for event 'keyDown'.
      */
      
      params [
          "_ctrl",
          "_code",
          "_shift",
          "_ctrlKey",
          "_alt"
      ];
      
      private _speed = speed cursorObject;
      private _handled = false;
      private _interactionKey = if (actionKeys "User10" isEqualTo []) then {219} else {(actionKeys "User10") select 0};
      private _interruptionKeys = [17, 30, 31, 32]; //A,S,W,D
      
      //Vault handling...
      if ((_code in (actionKeys "GetOver") || _code in (actionKeys "salute") || _code in (actionKeys "SitDown") || _code in (actionKeys "Throw") || _code in (actionKeys "GetIn") || _code in (actionKeys "GetOut") || _code in (actionKeys "Fire") || _code in (actionKeys "ReloadMagazine") || _code in [16,18]) && ((player getVariable ["restrained",false]) || (player getVariable ["playerSurrender",false]) || life_isknocked || life_istazed)) exitWith {
          true;
      };
      
      if (life_action_inUse) exitWith {
          if (!life_interrupted && _code in _interruptionKeys) then {life_interrupted = true};
          _handled;
      };
      
      //Hotfix for Interaction key not being able to be bound on some operation systems.
      if (!(actionKeys "User10" isEqualTo []) && {(inputAction "User10" > 0)}) exitWith {
          //Interaction key (default is Left Windows, can be mapped via Controls -> Custom -> User Action 10)
          if (!life_action_inUse) then {
              [] spawn {
                  private _handle = [] spawn life_fnc_actionKeyHandler;
                  waitUntil {scriptDone _handle};
                  life_action_inUse = false;
              };
          };
          true;
      };
      
      if (life_container_active) exitwith {
          //ignore movement actions
          private _allowedMoves = [
              "MoveForward",
              "MoveBack",
              "TurnLeft",
              "TurnRight",
              "MoveFastForward",
              "MoveSlowForward",
              "turbo",
              "TurboToggle",
              "MoveLeft",
              "MoveRight",
              "WalkRunTemp",
              "WalkRunToggle",
              "AdjustUp",
              "AdjustDown",
              "AdjustLeft",
              "AdjustRight",
              "Stand",
              "Crouch",
              "Prone",
              "MoveUp",
              "MoveDown",
              "LeanLeft",
              "LeanLeftToggle",
              "LeanRight",
              "LeanRightToggle"
          ];
          if (({_code in (actionKeys _x)} count _allowedMoves) > 0) exitwith {
              false;
          };
          //handle other keys
          if (_code isEqualTo 57) then {//space key -> place
              life_storagePlacing = 0 spawn life_fnc_placestorage;
          } else { //other keys -> abort
              if (!isNull life_storagePlacing) exitWith {}; //already placing down a box
              if (!isNull life_container_activeObj) then {
                  deleteVehicle life_container_activeObj;
                  titleText [localize "STR_NOTF_PlaceContainerAbort", "PLAIN"];
              };
              life_container_active = false;
          };
          true;
      };
      
      switch (_code) do {
          // -- Disable commander/tactical view
          if (LIFE_SETTINGS(getNumber,"disableCommanderView") isEqualTo 1) then {
              private _CommandMode = actionKeys "tacticalView";
      
              if (_code in _CommandMode) then {
                  hint localize "STR_NOTF_CommanderView";
                  _handled = true;
              };
          };
      
          //Space key for Jumping
          case 57: {
              if (isNil "jumpActionTime") then {jumpActionTime = 0;};
              if (_shift && {!(animationState player isEqualTo "AovrPercMrunSrasWrflDf")} && {isTouchingGround player} && {stance player isEqualTo "STAND"} && {speed player > 2} && {!life_is_arrested} && {((velocity player) select 2) < 2.5} && {time - jumpActionTime > 1.5}) then {
                  jumpActionTime = time; //Update the time.
                  [player] remoteExec ["life_fnc_jumpFnc",RANY]; //Global execution
                  _handled = true;
              };
          };
      
          //Surrender (Shift + B)
          case 48: {
              if (_shift) then {
                  if (player getVariable ["playerSurrender",false]) then {
                      player setVariable ["playerSurrender",false,true];
                  } else {
                      [] spawn life_fnc_surrender;
                  };
                  _handled = true;
              };
          };
      
          //Holster / recall weapon. (Shift + H)
          case 35: {
              if (_shift && !_ctrlKey && !(currentWeapon player isEqualTo "")) then {
                  life_curWep_h = currentWeapon player;
                  player action ["SwitchWeapon", player, player, 100];
                  player switchCamera cameraView;
              };
      
              if (!_shift && _ctrlKey && !isNil "life_curWep_h" && {!(life_curWep_h isEqualTo "")}) then {
                  if (life_curWep_h in [primaryWeapon player,secondaryWeapon player,handgunWeapon player]) then {
                      player selectWeapon life_curWep_h;
                  };
              };
          };
      
          //Interaction key (default is Left Windows, can be mapped via Controls -> Custom -> User Action 10)
          case _interactionKey: {
              if (!life_action_inUse) then {
                  [] spawn  {
                      private _handle = [] spawn life_fnc_actionKeyHandler;
                      waitUntil {scriptDone _handle};
                      life_action_inUse = false;
                  };
              };
          };
      
          //Restraining (Shift + R)
          case 19: {
              if (_shift) then {_handled = true};
              if (_shift && playerSide isEqualTo west && {!isNull cursorObject} && {cursorObject isKindOf "CAManBase"} && {(isPlayer cursorObject)} && {(side cursorObject in [civilian,independent])} && {alive cursorObject} && {cursorObject distance player < 3.5} && {!(cursorObject getVariable "Escorting")} && {!(cursorObject getVariable "restrained")} && {speed cursorObject < 1}) then {
                  [] call life_fnc_restrainAction;
              };
          };
      
          //Knock out, this is experimental and yeah... (Shift + G)
          case 34: {
              if (_shift) then {_handled = true};
              if (_shift && playerSide isEqualTo civilian && !isNull cursorObject && cursorObject isKindOf "CAManBase" && isPlayer cursorObject && alive cursorObject && cursorObject distance player < 4 && speed cursorObject < 1) then {
                  if ((animationState cursorObject) != "Incapacitated" && (currentWeapon player == primaryWeapon player || currentWeapon player == handgunWeapon player) && currentWeapon player != "" && !life_knockout && !(player getVariable ["restrained",false]) && !life_istazed && !life_isknocked) then {
                      [cursorObject] spawn life_fnc_knockoutAction;
                  };
              };
          };
      
          //T Key (Trunk)
          case 20: {
              if (!_alt && {!_ctrlKey} && {!dialog} && {!life_action_inUse} && {!(player getVariable ["playerSurrender",false])} && {!(player getVariable ["restrained",false])} && {!life_isknocked} && {!life_istazed}) then {
                  if (!(isNull objectParent player) && alive vehicle player) then {
                      if ((vehicle player) in life_vehicles) then {
                          [vehicle player] spawn life_fnc_openInventory;
                      };
                  } else {
                      private "_list";
                      _list = ((ASLtoATL (getPosASL player)) nearEntities [["Box_IND_Grenades_F","B_supplyCrate_F"], 2.5]) select 0;
                      if (!(isNil "_list")) then {
                          _house = nearestObject [(ASLtoATL (getPosASL _list)), "House"];
                          if (_house getVariable ["locked", false]) then {
                              hint localize "STR_House_ContainerDeny";
                          } else {
                              [_list] spawn life_fnc_openInventory;
                          };
                      } else {
                          _list = ["landVehicle","Air","Ship"];
                          if (KINDOF_ARRAY(cursorObject,_list) && {player distance cursorObject < 7} && {isNull objectParent player} && {alive cursorObject} && {!life_action_inUse}) then {
                              if (cursorObject in life_vehicles || {locked cursorObject isEqualTo 0}) then {
                                  [cursorObject] spawn life_fnc_openInventory;
                              };
                          };
                      };
                  };
              };
          };
          
          case 59: {[] call life_fnc_playerSkins; hint "Dein Skin wurde erfolgreich neugeladen!";};
          //L Key?
          case 38: {
              //If cop run checks for turning lights on.
              if (_shift && playerSide in [west,independent]) then {
                  if (!(isNull objectParent player) && (typeOf vehicle player) in ["C_Offroad_01_F","B_MRAP_01_F","C_SUV_01_F","C_Hatchback_01_sport_F","B_Heli_Light_01_F","B_Heli_Transport_01_F"]) then {
                      if (!isNil {vehicle player getVariable "lights"}) then {
                          if (playerSide isEqualTo west) then {
                              [vehicle player] call life_fnc_sirenLights;
                          } else {
                              [vehicle player] call life_fnc_medicSirenLights;
                          };
                          _handled = true;
                      };
                  };
              };
      
              if (!_alt && !_ctrlKey) then { [] call life_fnc_radar; };
          };
      
          //Y Player Menu
          case 21: {
              if (!_alt && !_ctrlKey && !dialog && !(player getVariable ["restrained",false]) && {!life_action_inUse}) then {
                  [] call life_fnc_p_openMenu;
              };
          };
      
          //F Key
          case 33: {
              if (playerSide in [west,independent] && {vehicle player != player} && {!life_siren_active} && {((driver vehicle player) == player)}) then {
                  [] spawn {
                      life_siren_active = true;
                      sleep 4.7;
                      life_siren_active = false;
                  };
      
                  private _veh = vehicle player;
                  if (isNil {_veh getVariable "siren"}) then {_veh setVariable ["siren",false,true];};
                  if ((_veh getVariable "siren")) then {
                      titleText [localize "STR_MISC_SirensOFF","PLAIN"];
                      _veh setVariable ["siren",false,true];
                      if !(isNil {(_veh getVariable "sirenJIP")}) then {
                          private _jip = _veh getVariable "sirenJIP";
                          _veh setVariable ["sirenJIP",nil,true];
                          remoteExec ["",_jip]; //remove from JIP queue
                      };
                  } else {
                      titleText [localize "STR_MISC_SirensON","PLAIN"];
                      _veh setVariable ["siren",true,true];
                      private "_jip";
                      if (playerSide isEqualTo west) then {
                          _jip = [_veh] remoteExec ["life_fnc_copSiren",RCLIENT,true];
                      } else {
                          _jip = [_veh] remoteExec ["life_fnc_medicSiren",RCLIENT,true];
                      };
                      _veh setVariable ["sirenJIP",_jip,true];
                  };
              };
          };
      
          //O Key
          case 24: {
              if (_shift) then {
                  if !(soundVolume isEqualTo 1) then {
                      1 fadeSound 1;
                      systemChat localize "STR_MISC_soundnormal";
                  } else {
                      1 fadeSound 0.1;
                      systemChat localize "STR_MISC_soundfade";
                  };
              };
          };
      
          //U Key
          case 22: {
              if (!_alt && !_ctrlKey) then {
                  private _veh = if (isNull objectParent player) then {
                      cursorObject;
                  } else {
                      vehicle player;
                  };
      
                  if (_veh isKindOf "House_F" && {playerSide isEqualTo civilian}) then {
                      if (_veh in life_vehicles && {player distance _veh < 20}) then {
                          private _door = [_veh] call life_fnc_nearestDoor;
                          if (_door isEqualTo 0) exitWith {hint localize "STR_House_Door_NotNear"};
                          private _locked = _veh getVariable [format ["bis_disabled_Door_%1",_door],0];
      
                          if (_locked isEqualTo 0) then {
                              _veh setVariable [format ["bis_disabled_Door_%1",_door],1,true];
                              _veh animateSource [format ["Door_%1_source", _door], 0];
                              systemChat localize "STR_House_Door_Lock";
                          } else {
                              _veh setVariable [format ["bis_disabled_Door_%1",_door],0,true];
                              _veh animateSource [format ["Door_%1_source", _door], 1];
                              systemChat localize "STR_House_Door_Unlock";
                          };
                      };
                  } else {
                      private _locked = locked _veh;
                      if (_veh in life_vehicles && {player distance _veh < 20}) then {
                          if (_locked isEqualTo 2) then {
                              if (local _veh) then {
                                  _veh lock 0;
      
                                  // BI
                                  _veh animateDoor ["door_back_R",1];
                                  _veh animateDoor ["door_back_L",1];
                                  _veh animateDoor ['door_R',1];
                                  _veh animateDoor ['door_L',1];
                                  _veh animateDoor ['Door_L_source',1];
                                  _veh animateDoor ['Door_rear',1];
                                  _veh animateDoor ['Door_rear_source',1];
                                  _veh animateDoor ['Door_1_source',1];
                                  _veh animateDoor ['Door_2_source',1];
                                  _veh animateDoor ['Door_3_source',1];
                                  _veh animateDoor ['Door_LM',1];
                                  _veh animateDoor ['Door_RM',1];
                                  _veh animateDoor ['Door_LF',1];
                                  _veh animateDoor ['Door_RF',1];
                                  _veh animateDoor ['Door_LB',1];
                                  _veh animateDoor ['Door_RB',1];
                                  _veh animateDoor ['DoorL_Front_Open',1];
                                  _veh animateDoor ['DoorR_Front_Open',1];
                                  _veh animateDoor ['DoorL_Back_Open',1];
                                  _veh animateDoor ['DoorR_Back_Open ',1];
                              } else {
                                  [_veh,0] remoteExecCall ["life_fnc_lockVehicle",_veh];
      
                                  _veh animateDoor ["door_back_R",1];
                                  _veh animateDoor ["door_back_L",1];
                                  _veh animateDoor ['door_R',1];
                                  _veh animateDoor ['door_L',1];
                                  _veh animateDoor ['Door_L_source',1];
                                  _veh animateDoor ['Door_rear',1];
                                  _veh animateDoor ['Door_rear_source',1];
                                  _veh animateDoor ['Door_1_source',1];
                                  _veh animateDoor ['Door_2_source',1];
                                  _veh animateDoor ['Door_3_source',1];
                                  _veh animateDoor ['Door_LM',1];
                                  _veh animateDoor ['Door_RM',1];
                                  _veh animateDoor ['Door_LF',1];
                                  _veh animateDoor ['Door_RF',1];
                                  _veh animateDoor ['Door_LB',1];
                                  _veh animateDoor ['Door_RB',1];
                                  _veh animateDoor ['DoorL_Front_Open',1];
                                  _veh animateDoor ['DoorR_Front_Open',1];
                                  _veh animateDoor ['DoorL_Back_Open',1];
                                  _veh animateDoor ['DoorR_Back_Open ',1];
                              };
                              systemChat localize "STR_MISC_VehUnlock";
                              [_veh,"unlockCarSound",50,1] remoteExec ["life_fnc_say3D",RANY];
                          } else {
                              if (local _veh) then {
                                  _veh lock 2;
      
                                  _veh animateDoor ["door_back_R",0];
                                  _veh animateDoor ["door_back_L",0];
                                  _veh animateDoor ['door_R',0];
                                  _veh animateDoor ['door_L',0];
                                  _veh animateDoor ['Door_L_source',0];
                                  _veh animateDoor ['Door_rear',0];
                                  _veh animateDoor ['Door_rear_source',0];
                                  _veh animateDoor ['Door_1_source',0];
                                  _veh animateDoor ['Door_2_source',0];
                                  _veh animateDoor ['Door_3_source',0];
                                  _veh animateDoor ['Door_LM',0];
                                  _veh animateDoor ['Door_RM',0];
                                  _veh animateDoor ['Door_LF',0];
                                  _veh animateDoor ['Door_RF',0];
                                  _veh animateDoor ['Door_LB',0];
                                  _veh animateDoor ['Door_RB',0];
                                  _veh animateDoor ['DoorL_Front_Open',0];
                                  _veh animateDoor ['DoorR_Front_Open',0];
                                  _veh animateDoor ['DoorL_Back_Open',0];
                                  _veh animateDoor ['DoorR_Back_Open ',0];
                              } else {
                                  [_veh,2] remoteExecCall ["life_fnc_lockVehicle",_veh];
      
                                  _veh animateDoor ["door_back_R",0];
                                  _veh animateDoor ["door_back_L",0];
                                  _veh animateDoor ['door_R',0];
                                  _veh animateDoor ['door_L',0];
                                  _veh animateDoor ['Door_L_source',0];
                                  _veh animateDoor ['Door_rear',0];
                                  _veh animateDoor ['Door_rear_source',0];
                                  _veh animateDoor ['Door_1_source',0];
                                  _veh animateDoor ['Door_2_source',0];
                                  _veh animateDoor ['Door_3_source',0];
                                  _veh animateDoor ['Door_LM',0];
                                  _veh animateDoor ['Door_RM',0];
                                  _veh animateDoor ['Door_LF',0];
                                  _veh animateDoor ['Door_RF',0];
                                  _veh animateDoor ['Door_LB',0];
                                  _veh animateDoor ['Door_RB',0];
                                  _veh animateDoor ['DoorL_Front_Open',0];
                                  _veh animateDoor ['DoorR_Front_Open',0];
                                  _veh animateDoor ['DoorL_Back_Open',0];
                                  _veh animateDoor ['DoorR_Back_Open ',0];
                              };
                              systemChat localize "STR_MISC_VehLock";
                              [_veh,"lockCarSound",50,1] remoteExec ["life_fnc_say3D",RANY];
                          };
                      };
                  };
              };
          };
      };
      
      _handled;
      Alles anzeigen

      Dateien

      Arma3_x64_2019-03-09_11-48-52.rpt 303,01 kB – 206 Downloads arma3server_x64_2019-03-09_12-32-58.rpt 62,43 kB – 131 Downloads
    • Spieler-ID von Datenbank auslesen

      • Alex
      • 7. März 2019 um 20:42

      Tja, wenn man nicht denken kann. Ich habe das wie folgt, trotzdem wird der Platzhalter "Spielername" angezeigt:

      Code: hud_stats.hpp
      /////////////////////////////////////////////////////////////////
      /////////// This File was Edited by GUI D3V by Shinji ///////////
      /////////////////////////////////////////////////////////////////
      #define ST_CENTER 0x02
      #define IDC_LIFE_BAR_FOOD_RING 160501
      #define IDC_LIFE_BAR_WATER_RING 160502
      #define IDC_LIFE_BAR_HEALTH_RING 160503
      
      class playerHUD {
         idd = -1;
         name = "playerHUD";
         movingenable = false;
         enablesimulation = true;
         onload = "uiNamespace setVariable ['playerHUD',_this select 0]";
         duration = 10e10;
         fadein = 0;
         fadeout = 0;
         class controlsBackground
         {
              class Life_RscPicture_Logo : Life_RscPicture
                 {
                     idc = 24234234;
                     text = "textures\hud\logo_weiss.paa";
                     x = 0.8580435 * safezoneW + safezoneX;
                     w = 0.1 * safezoneW;
                     h = 0.18 * safezoneH;
                     y = 0.793510324483776 * safezoneH + safezoneY;
                 };
                 class Life_Playername_Corner : Life_RscText
                 {
                     type = 0;
                     idc = 9786687;
                     style = 0;
                     x = 0.01 * safezoneW + safezoneX;
                     y = 0.97 * safezoneH + safezoneY;
                     w = 0.35587 * safezoneW;
                     h = 0.022 * safezoneH;
                     sizeex = 0.048;
                     size = 1;
                     font = "PuristaBold";
                     colorbackground[] = {0,0,0,0};
                     colortext[] = {1,1,1,1};
                     shadow = true;
                     text = "Spielername";
                 };
         };
         class controls
         {
             class life_RscPicture10 : life_RscPicture
             {
                 text = "textures\hud\health.paa";
                 x = 0.457083333333333 * safezoneW + safezoneX;
                 y = 0.901401179941003 * safezoneH + safezoneY;
                 w = 0.038 * safezoneW;
                 h = 0.077 * safezoneH;
                 idc = IDC_LIFE_BAR_HEALTH_RING;
             };
             class life_RscPicture1 : life_RscPicture
             {
                 text = "textures\hud\durst.paa";
                 x = 0.523958333333333 * safezoneW + safezoneX;
                 y = 0.901401179941003 * safezoneH + safezoneY;
                 w = 0.038 * safezoneW;
                 h = 0.077 * safezoneH;
                 idc = IDC_LIFE_BAR_WATER_RING;
             };
             class life_RscPicture100 : life_RscPicture
             {
                 text = "textures\hud\hunger.paa";
                 x = 0.393541666666667 * safezoneW + safezoneX;
                 y = 0.901401179941003 * safezoneH + safezoneY;
                 w = 0.038 * safezoneW;
                 h = 0.077 * safezoneH;
                 idc = IDC_LIFE_BAR_FOOD_RING;
             };
             class life_RscPicture0 : life_RscPicture
             {
                 text = "";
                 x = 0.523958333333333 * safezoneW + safezoneX;
                 y = 0.901401179941003 * safezoneH + safezoneY;
                 w = 0.038 * safezoneW;
                 h = 0.077 * safezoneH;
                 idc = 1000;
             };
             class life_RscPicture00 : life_RscPicture
             {
                 text = "";
                 x = 0.457083333333333 * safezoneW + safezoneX;
                 y = 0.901401179941003 * safezoneH + safezoneY;
                 w = 0.038 * safezoneW;
                 h = 0.077 * safezoneH;
                 idc = 1001;
             };
             class life_RscPicture000 : life_RscPicture
             {
                 text = "";
                 x = 0.393541666666667 * safezoneW + safezoneX;
                 y = 0.901401179941003 * safezoneH + safezoneY;
                 w = 0.038 * safezoneW;
                 h = 0.077 * safezoneH;
                 idc = 3243456346;
             };
         };
      };
      /////////////////////////////////////////////////////////////////
      ////////////////////////// FILE END /////////////////////////////
      /////////////////////////////////////////////////////////////////
      Alles anzeigen
      Code: fn_hudUID.sqf
      _type = _this select 0;
      switch (_type) do {
          case 0 : {
              private _PID = getPlayerUID player;
              [_PID] remoteExec ["DB_fnc_DBID",2];
          };
          case 1 : {
              private _DBID = _this select 1;
              ((uiNamespace getVariable "playerHUD") displayCtrl 9786687) ctrlSetText format ["%1 (%2)",profileName,_DBID];// for Display
          };
      };
      Alles anzeigen
      Code: fn_getUID.sqf
      _PID = _this select 0;
      _query = format ["SELECT uid FROM players WHERE pid='%1'",_PID];
      _queryResult = [_query,2] call DB_fnc_asyncCall;
      [1,_queryResult] remoteExec ["life_fnc_hudUID", remoteExecutedOwner];

    Registrieren oder Einloggen

    Du bist noch kein Mitglied von NodeZone.net? Registriere dich kostenlos und werde Teil einer großartigen Community!

    Registrieren

    Wichtige Links & Informationen

    Server & Hosting-Ressourcen

      Server Administration & Hosting Basics

      Windows Server Support & Guides

      Linux Server Configuration & Help

      Setting up TeamSpeak 3 & VoIP Servers

      Domains & Web Hosting for Beginners & Professionals

      Cloud Hosting, Docker & Kubernetes Tutorials

    Gameserver & Modding-Ressourcen

      ArmA 3 Tutorials & Script Collection

      Renting & Operating Gameservers

      DayZ Server Management & Help

      FiveM (GTA V) Server & Script Development

      Rust Server Modding & Administration

      Setting up & Optimizing ARK Survival Servers

    NodeZone.net – Deine Community für Gameserver, Server-Hosting & Modding

      NodeZone.net ist dein Forum für Gameserver-Hosting, Rootserver, vServer, Webhosting und Modding. Seit 2015 bietet unsere Community eine zentrale Anlaufstelle für Server-Admins, Gamer und Technikbegeisterte, die sich über Server-Management, Hosting-Lösungen und Spielemodding austauschen möchten.


      Ob Anleitungen für eigene Gameserver, Hilfe bei Root- und vServer-Konfigurationen oder Tipps zu Modding & Scripting – bei uns findest du fundiertes Wissen und praxisnahe Tutorials. Mit einer stetig wachsenden Community findest du hier Antworten auf deine Fragen, Projektpartner und Gleichgesinnte für deine Gaming- und Serverprojekte. Schließe dich NodeZone.net an und werde Teil einer aktiven Community rund um Server-Hosting, Gameserver-Management und Modding-Ressourcen.

    Wer jetzt nicht teilt ist selber Schuld:
    1. Nutzungsbestimmungen
    2. Datenschutzerklärung
    3. Impressum
    4. Urheberrechts- oder Lizenzverstoß melden
  • Trimax Design coded & layout by Gino Zantarelli 2023-2025©
    Community-Software: WoltLab Suite™