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
Di: 01 Juli 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

    Wo liegt der Fehler

    • BlueType
    • 29. Mai 2018 um 19:08
    • Geschlossen
    • Erledigt
    • BlueType
      Nerd
      Reaktionen
      190
      Trophäen
      8
      Beiträge
      735
      Bilder
      27
      • 29. Mai 2018 um 19:08
      • #1

      Also dass ist das Script um ATM "Auszurauben(Also wie Tanke nur das da steht wird gehackt

      Code
      private["_robber","_shop","_kassa","_ui","_progress","_pgText","_cP","_rip","_pos"];
      _shop = [_this,0,ObjNull,[ObjNull]] call BIS_fnc_param; //The object that has the action attached to it is _this. ,0, is the index of object, ObjNull is the default should there be nothing in the parameter or it's broken
      _robber = [_this,1,ObjNull,[ObjNull]] call BIS_fnc_param; //Can you guess? Alright, it's the player, or the "caller". The object is 0, the person activating the object is 1
      //_kassa = 1000; //The amount the shop has to rob, you could make this a parameter of the call (https://community.bistudio.com/wiki/addAction). Give it a try and post below ;)
      _action = [_this,2] call BIS_fnc_param;//Action name
      
      if(side _robber != civilian) exitWith { hint "Du kannst den ATM nicht hacken!" };
      if(_robber distance _shop > 5) exitWith { hint "Bleibe 5m nahe am ATM!" };
      
      if !(_kassa) then { _kassa = 1000; };
      if (_rip) exitWith { hint "Ob du dumm bist??? Es kann nur einer am ATM sein!" };
      if (vehicle player != _robber) exitWith { hint "Raus aus dem scheiß Auto!" };
      
      if !(alive _robber) exitWith {};
      if(!([false,"lappi",1] call life_fnc_handleInv)) exitWith {"Du hast kein Laptop"};
      if (_kassa == 0) exitWith { hint "Kein Geld im ATM!" };
      
      _rip = true;
      _kassa = 10 + round(random 10000);
      _shop removeAction _action;
      _shop switchMove "AmovPercMstpSsurWnonDnon";
      _chance = random(100);
      if(_chance >= 50) then {[1,format["ALARM! - ATM: %1 wird Gehackt!", _shop]] remoteExec ["life_fnc_broadcast",west]; };
      
      _cops = (west countSide playableUnits);
      if(_cops < 2) exitWith{[_vault,-1] remoteExec ["disableSerialization;",2]; hint "Sicherheitsfirma hat dich endeckt und den ATM gesperrt!";};
      disableSerialization;
      5 cutRsc ["life_progress","PLAIN"];
      _ui = uiNameSpace getVariable "life_progress";
      _progress = _ui displayCtrl 38201;
      _pgText = _ui displayCtrl 38202;
      _pgText ctrlSetText format["ATM wird gehackt. Bleibe in der Nähe (10m) (1%1)...","%"];
      _progress progressSetPosition 0.01;
      _cP = 0.0001;
      
      if(_rip) then
      {
      while{true} do
      {
      sleep 3;
      _cP = _cP + 0.01;
      _progress progressSetPosition _cP;
      _pgText ctrlSetText format["ATM wird gehackt. Bleibe in der Nähe (10m) (%1%2)...",round(_cP * 100),"%"];
      _Pos = position player; // by ehno: get player pos
                                      _marker = createMarker ["Marker200", _Pos]; //by ehno: Place a Maker on the map
                                      "Marker200" setMarkerColor "ColorRed";
                                      "Marker200" setMarkerText "!ACHTUNG! Hacker am ATM !ACHTUNG!";
                                      "Marker200" setMarkerType "mil_warning";
      if(_cP >= 1) exitWith {};
      if(_robber distance _shop > 10.5) exitWith { };
      if!(alive _robber) exitWith {};
      };
      if!(alive _robber) exitWith { _rip = false; };
      if(_robber distance _shop > 10.5) exitWith { deleteMarker "Marker200"; _shop switchMove ""; hint "Laptop getrennt! - Sicherheitsfirma hat deine IP."; 5 cutText ["","PLAIN"]; _rip = false; };
      5 cutText ["","PLAIN"];
      
      titleText[format["Du hast $%1 erhackt, Nun gib Gas bevor die Cops dich sehen!",[_kassa] call life_fnc_numberText],"PLAIN"];
      deleteMarker "Marker200"; // by ehno delete maker
      life_cash = life_cash + _kassa;
      
      _rip = false;
      life_use_atm = false;
      sleep (30 + random(180));
      life_use_atm = true;
      if!(alive _robber) exitWith {};
      [getPlayerUID _robber,name _robber,"211"] remoteExec ["life_fnc_wantedAdd",2];
      };
      sleep 300;
      _action = _shop addAction["ATM Hacken",life_fnc_atmhack];
      _shop switchMove "";
      Alles anzeigen


      Und das ist der Log fehler:

      Code
      Error in expression < hint "Bleibe 5m nahe am ATM!" };
      
      if !(_kassa) then { _kassa = 1000; };
      if (_ri>
      19:01:12   Error position: <_kassa) then { _kassa = 1000; };
      if (_ri>
      19:01:12   Error Nicht definierte Variable in Ausdruck: _kassa
      19:01:12 File core\functions\fn_atmhack.sqf [life_fnc_atmhack], line 16
      19:01:15 Error in expression < hint "Bleibe 5m nahe am ATM!" };
      
      if !(_kassa) then { _kassa = 1000; };
      if (_ri>
      19:01:15   Error position: <_kassa) then { _kassa = 1000; };
      if (_ri>
      19:01:15   Error Nicht definierte Variable in Ausdruck: _kassa
      19:01:15 File core\functions\fn_atmhack.sqf [life_fnc_atmhack], line 16
      Alles anzeigen


      Bin ich hier zu doof oder ist da halt wirklich kein fehler?

      MFG ƁLƱΣƬΨƤΣ™

      :!:Hinweis:!:

      :!:Ich bin zwar erfahren mit der Sprache SQF, lerne trotzdem noch, definitiv kein Profi:!:

      Discord : ╲⎝⧹⎝ƁLƱΣƬΨƤΣ™⎠⧸⎠╱#0448

      Discord Server : https://discord.gg/K8KhAnE

      Teamspeak : ts.Endless-Net.de

    • perx
      Fortgeschrittener
      Reaktionen
      54
      Trophäen
      11
      Beiträge
      338
      • 29. Mai 2018 um 19:14
      • #2

      1. Hinter dem hint "Bleibe 5m nahe am ATM!", hint "Raus aus dem scheiß Auto!", hint "Du kannst den ATM nicht hacken!" fehlt ein Semikolon.

      2. Wenn _kassa auskommentiert ist, ist sie natürlich danach auch nicht definiert :D

      3. Hier fehlt der "hint" Befehlt komplett + das Semikolon exitWith {"Du hast kein Laptop"};
      //_kassa Zeile 4

      Beste Grüße,

      euer LimnosLife Team.

      _______________________________________________

      Dein Kontakt zu uns:

      E-Mail: [email protected]

      TS3: ts.limnoslife.eu

      Arma: server.limnoslife.eu
      Webseite: limnoslife.eu

    • BlueType
      Nerd
      Reaktionen
      190
      Trophäen
      8
      Beiträge
      735
      Bilder
      27
      • 29. Mai 2018 um 19:32
      • #3
      Code
      Error in expression <{ hint "Bleibe 5m nahe am ATM!"; };
      
      if !(_kassa) then { _kassa = 1000; };
      if (_>
      19:30:56   Error position: <!(_kassa) then { _kassa = 1000; };
      if (_>
      19:30:56   Error !: Typ Zahl, erwartet Bool
      19:30:56 File core\functions\fn_atmhack.sqf [life_fnc_atmhack], line 16

      Und nun die Datei

      Code
      private["_robber","_shop","_kassa","_ui","_progress","_pgText","_cP","_rip","_pos"];
      _shop = [_this,0,ObjNull,[ObjNull]] call BIS_fnc_param; //The object that has the action attached to it is _this. ,0, is the index of object, ObjNull is the default should there be nothing in the parameter or it's broken
      _robber = [_this,1,ObjNull,[ObjNull]] call BIS_fnc_param; //Can you guess? Alright, it's the player, or the "caller". The object is 0, the person activating the object is 1
      _kassa = 1000; //The amount the shop has to rob, you could make this a parameter of the call (https://community.bistudio.com/wiki/addAction). Give it a try and post below ;)
      _action = [_this,2] call BIS_fnc_param;//Action name
      
      if(side _robber != civilian) exitWith { hint "Du kannst den ATM nicht hacken!"; };
      if(_robber distance _shop > 5) exitWith { hint "Bleibe 5m nahe am ATM!"; };
      
      if !(_kassa) then { _kassa = 1000; };
      if (_rip) exitWith { hint "Ob du dumm bist??? Es kann nur einer am ATM sein!"; };
      if (vehicle player != _robber) exitWith { hint "Raus aus dem scheiß Auto!"; };
      
      if !(alive _robber) exitWith {};
      if(!([false,"lappi",1] call life_fnc_handleInv)) exitWith { hint "Du hast kein Laptop!"; };
      if (_kassa == 0) exitWith { hint "Kein Geld im ATM!" };
      
      _rip = true;
      _kassa = 10 + round(random 10000);
      _shop removeAction _action;
      _shop switchMove "AmovPercMstpSsurWnonDnon";
      _chance = random(100);
      if(_chance >= 50) then {[1,format["ALARM! - ATM: %1 wird Gehackt!", _shop]] remoteExec ["life_fnc_broadcast",west]; };
      
      _cops = (west countSide playableUnits);
      if(_cops < 2) exitWith{[_vault,-1] remoteExec ["disableSerialization;",2]; hint "Sicherheitsfirma hat dich endeckt und den ATM gesperrt!";};
      disableSerialization;
      5 cutRsc ["life_progress","PLAIN"];
      _ui = uiNameSpace getVariable "life_progress";
      _progress = _ui displayCtrl 38201;
      _pgText = _ui displayCtrl 38202;
      _pgText ctrlSetText format["ATM wird gehackt. Bleibe in der Nähe (10m) (1%1)...","%"];
      _progress progressSetPosition 0.01;
      _cP = 0.0001;
      
      if(_rip) then
      {
      while{true} do
      {
      sleep 3;
      _cP = _cP + 0.01;
      _progress progressSetPosition _cP;
      _pgText ctrlSetText format["ATM wird gehackt. Bleibe in der Nähe (10m) (%1%2)...",round(_cP * 100),"%"];
      _Pos = position player; // by ehno: get player pos
                                      _marker = createMarker ["Marker200", _Pos]; //by ehno: Place a Maker on the map
                                      "Marker200" setMarkerColor "ColorRed";
                                      "Marker200" setMarkerText "!ACHTUNG! Hacker am ATM !ACHTUNG!";
                                      "Marker200" setMarkerType "mil_warning";
      if(_cP >= 1) exitWith {};
      if(_robber distance _shop > 10.5) exitWith { };
      if!(alive _robber) exitWith {};
      };
      if!(alive _robber) exitWith { _rip = false; };
      if(_robber distance _shop > 10.5) exitWith { deleteMarker "Marker200"; _shop switchMove ""; hint "Laptop getrennt! - Sicherheitsfirma hat deine IP."; 5 cutText ["","PLAIN"]; _rip = false; };
      5 cutText ["","PLAIN"];
      
      titleText[format["Du hast $%1 erhackt, Nun gib Gas bevor die Cops dich sehen!",[_kassa] call life_fnc_numberText],"PLAIN"];
      deleteMarker "Marker200"; // by ehno delete maker
      life_cash = life_cash + _kassa;
      
      _rip = false;
      life_use_atm = false;
      sleep (30 + random(180));
      life_use_atm = true;
      if!(alive _robber) exitWith {};
      [getPlayerUID _robber,name _robber,"211"] remoteExec ["life_fnc_wantedAdd",2];
      };
      sleep 300;
      _action = _shop addAction["ATM Hacken",life_fnc_atmhack];
      _shop switchMove "";
      Alles anzeigen

      MFG ƁLƱΣƬΨƤΣ™

      :!:Hinweis:!:

      :!:Ich bin zwar erfahren mit der Sprache SQF, lerne trotzdem noch, definitiv kein Profi:!:

      Discord : ╲⎝⧹⎝ƁLƱΣƬΨƤΣ™⎠⧸⎠╱#0448

      Discord Server : https://discord.gg/K8KhAnE

      Teamspeak : ts.Endless-Net.de

    • perx
      Fortgeschrittener
      Reaktionen
      54
      Trophäen
      11
      Beiträge
      338
      • 29. Mai 2018 um 19:50
      • #4

      if !(_kassa) then { _kassa = 1000; };

      Das Script versucht zu schauen ob die Variable _kassa true oder false ist. (Bool)
      Versuchs mal so:

      if (_kassa = 0) then { _kassa = 1000; };

      Und in Zeile 16 fehlt immer noch ein Semikolon.

      Beste Grüße,

      euer LimnosLife Team.

      _______________________________________________

      Dein Kontakt zu uns:

      E-Mail: [email protected]

      TS3: ts.limnoslife.eu

      Arma: server.limnoslife.eu
      Webseite: limnoslife.eu

    • B4v4r!4n_Str!k3r
      Nerd
      Reaktionen
      246
      Trophäen
      11
      Beiträge
      725
      Bilder
      5
      • 29. Mai 2018 um 20:40
      • #5
      Zitat von perx

      if (_kassa = 0) then { _kassa = 1000; };

      wenn dann == , aber besser ist:

      if (_kassa isEqualTo 0) then { _kassa = 1000; };

      23106-logo-schrift-dunkel-390-70-png class=

      Services rund um ArmA RPG Life

      ArmA Bibel: https://community.bistudio.com/wiki/

    • Jonas2K
      Anfänger
      Reaktionen
      4
      Trophäen
      8
      Beiträge
      90
      • 29. Mai 2018 um 20:54
      • #6

      dash kann gelöscht werden war murks

    • BlueType
      Nerd
      Reaktionen
      190
      Trophäen
      8
      Beiträge
      735
      Bilder
      27
      • 30. Mai 2018 um 16:03
      • #7

      Danke es geht

      Kann Geschlossen werden

      MFG ƁLƱΣƬΨƤΣ™

      :!:Hinweis:!:

      :!:Ich bin zwar erfahren mit der Sprache SQF, lerne trotzdem noch, definitiv kein Profi:!:

      Discord : ╲⎝⧹⎝ƁLƱΣƬΨƤΣ™⎠⧸⎠╱#0448

      Discord Server : https://discord.gg/K8KhAnE

      Teamspeak : ts.Endless-Net.de

    Registrieren oder Einloggen

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

    Registrieren

    Ähnliche Themen

    • Probleme bei OPFOR

      • MatzeGam1ngTv
      • 27. Mai 2018 um 15:52
      • Hilfeforum
    • Kann auf meinem Server nicht respawnen

      • Tomcat
      • 12. Mai 2018 um 20:58
      • Hilfeforum
    • Fehler beim Joinen | RPT Log

      • Syndex
      • 9. Mai 2018 um 17:06
      • Hilfeforum
    • Windows Bug

      • Niknoone
      • 28. April 2018 um 16:58
      • Hilfeforum
    • Hotkeys funktionieren nicht

      • GaNja
      • 24. April 2018 um 10:28
      • Hilfeforum

    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™