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
Fr: 13 Juni 2025
  • Anmelden oder registrieren
  • Suche
Dieses Thema
  • Alles
  • Dieses Thema
  • Dieses Forum
  • 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. Forum
    3. Gameserver & Hosting
    4. ArmA Series - ArmA 3 / Reforger
    5. Hilfeforum

    process action fehler

    • tklein
    • 29. März 2017 um 21:46
    • Geschlossen
    • Erledigt
    • tklein
      Fortgeschrittener
      Reaktionen
      9
      Trophäen
      10
      Beiträge
      261
      • 29. März 2017 um 21:46
      • #1

      bekomme folgenden fehler:

      if (_vendor in [|#|mari_processor.coke_processor,heroin_pro...'

      Error Nicht definierte Variable

      in der datei fn_processaction.sqf zeile 104

      hab aber da nichts geändert kann mir da jemand helfen !?

      Spoiler anzeigen

      #include "..\..\script_macros.hpp"


      /*


      File: fn_processAction.sqf


      Author: Bryan "Tonic" Boardwine


      Modified : NiiRoZz


      Description:


      Master handling for processing an item.


      NiiRoZz : Added multiprocess


      */


      private ["_vendor","_type","_itemInfo","_oldItem","_newItemWeight","_newItem","_oldItemWeight","_cost","_upp","_hasLicense","_itemName","_oldVal","_ui","_progress","_pgText","_cP","_materialsRequired","_materialsGiven","_noLicenseCost","_text","_filter","_totalConversions","_minimumConversions"];


      _vendor = [_this,0,objNull,[objNull]] call BIS_fnc_param;


      _type = [_this,3,"",[""]] call BIS_fnc_param;


      //Error check


      if (isNull _vendor || _type isEqualTo "" || (player distance _vendor > 10)) exitWith {_ui = "osefStatusBar" call BIS_fnc_rscLayer;_ui cutRsc["osefStatusBar","PLAIN"];};;


      life_action_inUse = true;//Lock out other actions during processing.


      if (isClass (missionConfigFile >> "ProcessAction" >> _type)) then {


      _filter = false;


      _materialsRequired = M_CONFIG(getArray,"ProcessAction",_type,"MaterialsReq");


      _materialsGiven = M_CONFIG(getArray,"ProcessAction",_type,"MaterialsGive");


      _noLicenseCost = M_CONFIG(getNumber,"ProcessAction",_type,"NoLicenseCost");


      _text = M_CONFIG(getText,"ProcessAction",_type,"Text");


      } else {_filter = true;};


      if (_filter) exitWith {life_action_inUse = false;};


      _itemInfo = [_materialsRequired,_materialsGiven,_noLicenseCost,(localize format ["%1",_text])];


      if (count _itemInfo isEqualTo 0) exitWith {life_action_inUse = false;};


      //Setup vars.


      _oldItem = _itemInfo select 0;


      _newItem = _itemInfo select 1;


      _cost = _itemInfo select 2;


      _upp = _itemInfo select 3;


      _exit = false;


      if (count _oldItem isEqualTo 0) exitWith {life_action_inUse = false;};


      _totalConversions = [];


      {


      _var = ITEM_VALUE(_x select 0);


      if (_var isEqualTo 0) exitWith {_exit = true;};


      if (_var < (_x select 1)) exitWith {_exit = true;};


      _totalConversions pushBack (floor (_var/(_x select 1)));


      } forEach _oldItem;


      if (_exit) exitWith {life_is_processing = false; hint localize "STR_NOTF_NotEnoughItemProcess"; life_action_inUse = false;};


      if (_vendor in [mari_processor,coke_processor,heroin_processor]) then {


      _hasLicense = true;


      } else {


      _hasLicense = LICENSE_VALUE(_type,"civ");


      };


      _cost = _cost * (count _oldItem);


      _minimumConversions = _totalConversions call BIS_fnc_lowestNum;


      _oldItemWeight = 0;


      {


      _weight = ([_x select 0] call life_fnc_itemWeight) * (_x select 1);


      _oldItemWeight = _oldItemWeight + _weight;


      } count _oldItem;


      _newItemWeight = 0;


      {


      _weight = ([_x select 0] call life_fnc_itemWeight) * (_x select 1);


      _newItemWeight = _newItemWeight + _weight;


      } count _newItem;


      _exit = false;


      if (_newItemWeight > _oldItemWeight) then {


      _netChange = _newItemWeight - _oldItemWeight;


      _freeSpace = life_maxWeight - life_carryWeight;


      if (_freeSpace < _netChange) exitWith {_exit = true;};


      private _estConversions = floor(_freeSpace / _netChange);


      if (_estConversions < _minimumConversions) then {


      _minimumConversions = _estConversions;


      };


      };


      if (_exit) exitWith {hint localize "STR_Process_Weight"; life_is_processing = false; life_action_inUse = false;};


      //Setup our progress bar.


      disableSerialization;


      "progressBar" cutRsc ["life_progress","PLAIN"];


      _ui = uiNamespace getVariable "life_progress";


      _progress = _ui displayCtrl 38201;


      _pgText = _ui displayCtrl 38202;


      _pgText ctrlSetText format ["%2 (1%1)...","%",_upp];


      _progress progressSetPosition 0.01;


      _cP = 0.01;


      life_is_processing = true;


      if (_hasLicense) then {


      for "_i" from 0 to 1 step 0 do {


      sleep 0.28;


      _cP = _cP + 0.01;


      _progress progressSetPosition _cP;


      _pgText ctrlSetText format ["%3 (%1%2)...",round(_cP * 100),"%",_upp];


      if (_cP >= 1) exitWith {_ui = "osefStatusBar" call BIS_fnc_rscLayer;_ui cutRsc["osefStatusBar","PLAIN"];};;


      if (player distance _vendor > 10) exitWith {_ui = "osefStatusBar" call BIS_fnc_rscLayer;_ui cutRsc["osefStatusBar","PLAIN"];};;


      };


      if (player distance _vendor > 10) exitWith {hint localize "STR_Process_Stay"; "progressBar" cutText ["","PLAIN"]; life_is_processing = false; life_action_inUse = false;};


      {


      [false,(_x select 0),((_x select 1)*(_minimumConversions))] call life_fnc_handleInv;


      } count _oldItem;


      {


      [true,(_x select 0),((_x select 1)*(_minimumConversions))] call life_fnc_handleInv;


      } count _newItem;


      "progressBar" cutText ["","PLAIN"];


      if (_minimumConversions isEqualTo (_totalConversions call BIS_fnc_lowestNum)) then {hint localize "STR_NOTF_ItemProcess";} else {hint localize "STR_Process_Partial";};


      life_is_processing = false; life_action_inUse = false;


      } else {


      if (CASH < _cost) exitWith {hint format [localize "STR_Process_License",[_cost] call life_fnc_numberText]; "progressBar" cutText ["","PLAIN"]; life_is_processing = false; life_action_inUse = false;};


      for "_i" from 0 to 1 step 0 do {


      sleep 0.9;


      _cP = _cP + 0.01;


      _progress progressSetPosition _cP;


      _pgText ctrlSetText format ["%3 (%1%2)...",round(_cP * 100),"%",_upp];


      if (_cP >= 1) exitWith {_ui = "osefStatusBar" call BIS_fnc_rscLayer;_ui cutRsc["osefStatusBar","PLAIN"];};;


      if (player distance _vendor > 10) exitWith {_ui = "osefStatusBar" call BIS_fnc_rscLayer;_ui cutRsc["osefStatusBar","PLAIN"];};;


      };


      if (player distance _vendor > 10) exitWith {hint localize "STR_Process_Stay"; "progressBar" cutText ["","PLAIN"]; life_is_processing = false; life_action_inUse = false;};


      if (CASH < _cost) exitWith {hint format [localize "STR_Process_License",[_cost] call life_fnc_numberText]; "progressBar" cutText ["","PLAIN"]; life_is_processing = false; life_action_inUse = false;};


      {


      [false,(_x select 0),((_x select 1)*(_minimumConversions))] call life_fnc_handleInv;


      } count _oldItem;


      {


      [true,(_x select 0),((_x select 1)*(_minimumConversions))] call life_fnc_handleInv;


      } count _newItem;


      "progressBar" cutText ["","PLAIN"];


      if (_minimumConversions isEqualTo (_totalConversions call BIS_fnc_lowestNum)) then {hint localize "STR_NOTF_ItemProcess";} else {hint localize "STR_Process_Partial";};


      CASH = CASH - _cost;


      [0] call SOCK_fnc_updatePartial;


      life_is_processing = false;


      life_action_inUse = false;


      };


      tklein104

      TS3: 94.250.223.15:15065

    • Brizi Jaeger
      Profi
      Reaktionen
      291
      Trophäen
      11
      Beiträge
      1.025
      • 29. März 2017 um 21:50
      • #2

      Probier mal diese hier, ist allerdings keine Statusbar mit drinne... und doch du hast was geändert ^^ Oder ist die osefstatusbar mittlerweile standard drinne? :D

      Code
      #include "..\..\script_macros.hpp"
      /*
          File: fn_processAction.sqf
          Author: Bryan "Tonic" Boardwine
          Modified : NiiRoZz
      
          Description:
          Master handling for processing an item.
          NiiRoZz : Added multiprocess
      */
      private["_vendor","_type","_itemInfo","_oldItem","_newItemWeight","_newItem","_oldItemWeight","_cost","_upp","_hasLicense","_itemName","_oldVal","_ui","_progress","_pgText","_cP","_materialsRequired","_materialsGiven","_noLicenseCost","_text","_filter","_totalConversions","_minimumConversions"];
      _vendor = [_this,0,ObjNull,[ObjNull]] call BIS_fnc_param;
      _type = [_this,3,"",[""]] call BIS_fnc_param;
      //Error check
      if (isNull _vendor || _type isEqualTo "" || (player distance _vendor > 10)) exitWith {};
      life_action_inUse = true;//Lock out other actions during processing.
      
      if (isClass (missionConfigFile >> "ProcessAction" >> _type)) then {
          _filter = false;
          _materialsRequired = M_CONFIG(getArray,"ProcessAction",_type,"MaterialsReq");
          _materialsGiven = M_CONFIG(getArray,"ProcessAction",_type,"MaterialsGive");
          _noLicenseCost = M_CONFIG(getNumber,"ProcessAction",_type,"NoLicenseCost");
          _text = M_CONFIG(getText,"ProcessAction",_type,"Text");
      } else {_filter = true;};
      
      if (_filter) exitWith {life_action_inUse = false;};
      
      _itemInfo = [_materialsRequired,_materialsGiven,_noLicenseCost,(localize format["%1",_text])];
      if (count _itemInfo isEqualTo 0) exitWith {life_action_inUse = false;};
      
      //Setup vars.
      _oldItem = _itemInfo select 0;
      _newItem = _itemInfo select 1;
      _cost = _itemInfo select 2;
      _upp = _itemInfo select 3;
      _exit = false;
      if (count _oldItem isEqualTo 0) exitWith {life_action_inUse = false;};
      
      _totalConversions = [];
      {
          _var = ITEM_VALUE(_x select 0);
          if (_var isEqualTo 0) exitWith {_exit = true;};
          if (_var < (_x select 1)) exitWith {_exit = true;};
          _totalConversions pushBack (floor (_var/(_x select 1)));
      } forEach _oldItem;
      
      if (_exit) exitWith {life_is_processing = false; hint localize "STR_NOTF_NotEnoughItemProcess"; life_action_inUse = false;};
      
      if (_vendor in [mari_processor,coke_processor,heroin_processor]) then {
          _hasLicense = true;
      } else {
          _hasLicense = LICENSE_VALUE(_type,"civ");
      };
      
      _cost = _cost * (count _oldItem);
      
      _minimumConversions = _totalConversions call BIS_fnc_lowestNum;
      _oldItemWeight = 0;
      {
          _weight = ([_x select 0] call life_fnc_itemWeight) * (_x select 1);
          _oldItemWeight = _oldItemWeight + _weight;
      } count _oldItem;
      
      _newItemWeight = 0;
      {
          _weight = ([_x select 0] call life_fnc_itemWeight) * (_x select 1);
          _newItemWeight = _newItemWeight + _weight;
      } count _newItem;
      
      _exit = false;
      
      if (_newItemWeight > _oldItemWeight) then {
          _netChange = _newItemWeight - _oldItemWeight;
          _freeSpace = life_maxWeight - life_carryWeight;
          if (_freeSpace < _netChange) exitWith {_exit = true;};
          _minimumConversions = floor(_freeSpace / _netChange);
      };
      
      if (_exit) exitWith {hint localize "STR_Process_Weight"; life_is_processing = false; life_action_inUse = false;};
      
      //Setup our progress bar.
      disableSerialization;
      5 cutRsc ["life_progress","PLAIN"];
      _ui = uiNamespace getVariable "life_progress";
      _progress = _ui displayCtrl 38201;
      _pgText = _ui displayCtrl 38202;
      _pgText ctrlSetText format["%2 (1%1)...","%",_upp];
      _progress progressSetPosition 0.01;
      _cP = 0.01;
      
      life_is_processing = true;
      
      if (_hasLicense) then {
          for "_i" from 0 to 1 step 0 do {
              sleep  0.28;
              _cP = _cP + 0.01;
              _progress progressSetPosition _cP;
              _pgText ctrlSetText format["%3 (%1%2)...",round(_cP * 100),"%",_upp];
              if (_cP >= 1) exitWith {};
              if (player distance _vendor > 10) exitWith {};
          };
          if (player distance _vendor > 10) exitWith {hint localize "STR_Process_Stay"; 5 cutText ["","PLAIN"]; life_is_processing = false; life_action_inUse = false;};
      
          {
              [false,(_x select 0),((_x select 1)*(_minimumConversions))] call life_fnc_handleInv;
          } count _oldItem;
      
          {
              [true,(_x select 0),((_x select 1)*(_minimumConversions))] call life_fnc_handleInv;
          } count _newItem;
      
          5 cutText ["","PLAIN"];
          if (_minimumConversions isEqualTo (_totalConversions call BIS_fnc_lowestNum)) then {hint localize "STR_NOTF_ItemProcess";} else {hint localize "STR_Process_Partial";};
          life_is_processing = false; life_action_inUse = false;
      } else {
          if (CASH < _cost) exitWith {hint format[localize "STR_Process_License",[_cost] call life_fnc_numberText]; 5 cutText ["","PLAIN"]; life_is_processing = false; life_action_inUse = false;};
      
          for "_i" from 0 to 1 step 0 do {
              sleep  0.9;
              _cP = _cP + 0.01;
              _progress progressSetPosition _cP;
              _pgText ctrlSetText format["%3 (%1%2)...",round(_cP * 100),"%",_upp];
              if (_cP >= 1) exitWith {};
              if (player distance _vendor > 10) exitWith {};
          };
      
          if (player distance _vendor > 10) exitWith {hint localize "STR_Process_Stay"; 5 cutText ["","PLAIN"]; life_is_processing = false; life_action_inUse = false;};
          if (CASH < _cost) exitWith {hint format[localize "STR_Process_License",[_cost] call life_fnc_numberText]; 5 cutText ["","PLAIN"]; life_is_processing = false; life_action_inUse = false;};
      
          {
              [false,(_x select 0),((_x select 1)*(_minimumConversions))] call life_fnc_handleInv;
          } count _oldItem;
      
          {
              [true,(_x select 0),((_x select 1)*(_minimumConversions))] call life_fnc_handleInv;
          } count _newItem;
      
          5 cutText ["","PLAIN"];
          if (_minimumConversions isEqualTo (_totalConversions call BIS_fnc_lowestNum)) then {hint localize "STR_NOTF_ItemProcess";} else {hint localize "STR_Process_Partial";};
          CASH = CASH - _cost;
          life_is_processing = false; life_action_inUse = false;
      };
      Alles anzeigen
    • tklein
      Fortgeschrittener
      Reaktionen
      9
      Trophäen
      10
      Beiträge
      261
      • 29. März 2017 um 22:22
      • #3

      ne immer noch

      tklein104

      TS3: 94.250.223.15:15065

    • Brizi Jaeger
      Profi
      Reaktionen
      291
      Trophäen
      11
      Beiträge
      1.025
      • 29. März 2017 um 22:53
      • #4

      Häng mal Logs an ^^

    • br1zey
      Meister
      Reaktionen
      881
      Trophäen
      11
      Beiträge
      2.458
      Dateien
      2
      Bilder
      58
      • 29. März 2017 um 23:11
      • #5

      du hast dei Waschbecken die im Original in den Ganbases auf der MAP sind entfernt daher der Fehler füge die Hinzu und nene sie ensprechen

      mari_processor

      coke_processor

      heroin_processor

      ReallifeRPG Admin, Scripter, Technischer Helfer, und Manchmal auch Spieler

      realliferpg128x128.png?resize=128%2C128&ssl=1

    • tklein
      Fortgeschrittener
      Reaktionen
      9
      Trophäen
      10
      Beiträge
      261
      • 30. März 2017 um 16:29
      • #6
      Zitat von Brizi Jaeger

      Häng mal Logs an ^^

      meine server logs sind keine fehler drinn komischerweise , der fehler ist nur auf dem bildschirm beim processen sichtbar

      tklein104

      TS3: 94.250.223.15:15065

    • tklein
      Fortgeschrittener
      Reaktionen
      9
      Trophäen
      10
      Beiträge
      261
      • 30. März 2017 um 16:33
      • #7
      Zitat von br1zey

      du hast dei Waschbecken die im Original in den Ganbases auf der MAP sind entfernt daher der Fehler füge die Hinzu und nene sie ensprechen

      mari_processor

      coke_processor

      heroin_processor

      hää wie meinst du das ?

      gangbases ?

      meinst du Gangverstecke ? wenn ja kann ich diese Gangverstecke ?

      kannst du mir mal genau erklären wie ich die einstellen muss ?? hab se jetzt nähmlich aus ne anderen version genommen ! aber geht irgendwie nicht

      tklein104

      TS3: 94.250.223.15:15065

      Einmal editiert, zuletzt von tklein (30. März 2017 um 16:48)

    • Shinji
      Profi
      Reaktionen
      576
      Trophäen
      10
      Beiträge
      778
      • 30. März 2017 um 16:37
      • #8

      Wenn du grade diesen Fehler bekommen hast, kann man von ausgehen dass es ein Client Fehler ist, also die Logs vom Client bitte...

      Ich denke aber dass br1zey schon recht haben wird.

      Software Entwickler -
      Präzises Rätselraten, basierend auf unzuverlässigen Daten und fragwürdigem Wissen der Auftraggeber.

    • br1zey
      Meister
      Reaktionen
      881
      Trophäen
      11
      Beiträge
      2.458
      Dateien
      2
      Bilder
      58
      • 30. März 2017 um 22:08
      • #9

      in den üblichen Altis Life Ganverstecken hast du in jedem Versteck ein Waschbecken an dem man auch veabeiten kann

      ge in den editor setz die waschbecken

      und gebe als variablen Namen

      mari_processor

      coke_processor

      heroin_processor

      an dan sollte das gefixt sein

      ReallifeRPG Admin, Scripter, Technischer Helfer, und Manchmal auch Spieler

      realliferpg128x128.png?resize=128%2C128&ssl=1

    • Brizi Jaeger
      Profi
      Reaktionen
      291
      Trophäen
      11
      Beiträge
      1.025
      • 30. März 2017 um 22:59
      • #10

      Ich habe es dir mal kurz als Screenshot hochgeladen was er meint falls du es doch nicht verstehen solltest :

      Oben im Variablennamen sollst du dementsprechend eintragen.

      Sprich bei dem Kavala Gangversteck ins Waschbecken oder was du gesetzt hast :

      "coke_processor"

      Bei Dp12 Gangversteck 1

      "mari_processor"

      Zuletzt bei Charkia (Dp19)

      Gangversteck 3

      "heroin_processor"

      Code
      mari_processor
      
      coke_processor
      
      heroin_processor

    • tklein
      Fortgeschrittener
      Reaktionen
      9
      Trophäen
      10
      Beiträge
      261
      • 31. März 2017 um 17:10
      • #11

      danke !!!

      tklein104

      TS3: 94.250.223.15:15065

    Registrieren oder Einloggen

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

    Registrieren

    Ähnliche Themen

    • [Tutorial] Permanenter Personalausweis/Dienstausweis - (V1+V2)

      • Rom
      • 19. Oktober 2016 um 22:22
      • Tutorials & Releases
    • Ausweis Script funktioniert nicht

      • DucMaster
      • 16. Juli 2017 um 17:23
      • Hilfeforum
    • Medic Interactionsmenu und Enter gehen nicht

      • Gismo2501
      • 26. Dezember 2016 um 17:59
      • Hilfeforum
    • Verarbeitungs problem

      • harti
      • 15. November 2016 um 16:12
      • Hilfeforum
    • Wichtiges Cyberworks Sicherheitsupdate

      • 0xBADC0DED
      • 6. November 2016 um 12:31
      • Tutorials & Releases

    Benutzer online in diesem Thema

    • 1 Besucher

    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™