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
Mi: 28 Mai 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

    Tankstellen Ausrauben

    • amogus
    • 5. November 2016 um 13:04
    • Geschlossen
    • Erledigt
    • amogus
      Anfänger
      Reaktionen
      7
      Trophäen
      9
      Beiträge
      75
      • 5. November 2016 um 13:04
      • #1

      hi zusammen

      Ich versuch es mal hier vllt kann mir ja hier jemand weiter helfen.

      Also ich habe das tut https://native-network.net/thread/3584-tu…35270#post35270 für das Tankstellen Ausrauben versucht einzufügen.

      Nun hab ich das Problem das ich einen Script Fehler bekomme siehe BILD.

      Zur INFO ich benutze die Altis Life RPG V5.0.0

      Bin um jede Hilfe dankbar

      Bilder

      • Unbenannt.PNG
        • 64,68 kB
        • 524 × 80
        • 188
    • shoXy
      Nerd
      Reaktionen
      161
      Trophäen
      10
      Beiträge
      726
      • 5. November 2016 um 18:41
      • #2

      Versuch mal das ganz oben hinzupacken private["_robber","_shop","_kassa","_ui","_progress","_pgText","_cP","_rip","_pos"];

      Anstatt //private["_robber","_shop","_kassa","_ui","_progress","_pgText","_cP","_rip","_pos"];

    • amogus
      Anfänger
      Reaktionen
      7
      Trophäen
      9
      Beiträge
      75
      • 5. November 2016 um 19:23
      • #3

      Ok

      Hab ich gemacht dann bekomme ich die Meldung siehe Bild.

      Und hier mal die fn_robShop.sqf

      Spoiler anzeigen

      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 (http://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 { hintSilent "You can not rob this station!" };
      if(_robber distance _shop > 5) exitWith { hintSilent "You need to be within 5m of the cashier to rob him!" };

      if !(_kassa) then { _kassa = 1000; };
      if (_rip) exitWith { hintSilent "Robbery already in progress!" };
      if (vehicle player != _robber) exitWith { hintSilent "Get out of your vehicle!" };

      if !(alive _robber) exitWith {};
      if (currentWeapon _robber == "") exitWith { hintSilent "HaHa, you do not threaten me! Get out of here you hobo!" };
      if (_kassa == 0) exitWith { hintSilent "There is no cash in the register!" };

      _rip = true;
      _kassa = 10000 + round(random 10000);
      _shop removeAction _action;
      _shop switchMove "AmovPercMstpSsurWnonDnon";
      _chance = random(100);
      if(_chance >= 1) then {[1,format["ALARM! - Gasstation: %1 is being robbed!", _shop]] remoteExec ["life_fnc_broadcast",west]; };

      _cops = (west countSide playableUnits);
      if(_cops < 1) exitWith{[_vault,-1] remoteExec ["disableSerialization;",2]; hintSilent "There isnt enough Police to rob gas station!";};
      disableSerialization;
      5 cutRsc ["life_progress","PLAIN"];
      _ui = uiNameSpace getVariable "life_progress";
      _progress = _ui displayCtrl 38201;
      _pgText = _ui displayCtrl 38202;
      _pgText ctrlSetText format["Robbery in Progress, stay close (10m) (1%1)...","%"];
      _progress progressSetPosition 0.01;
      _cP = 0.01;
      if(_rip) then
      {
      while{true} do
      {
      uiSleep 0.85;
      _cP = _cP + 0.01;
      _progress progressSetPosition _cP;
      _pgText ctrlSetText format["Robbery in Progress, stay close (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 "!ATTENTION! robbery !ATTENTION!";
      "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 ""; hintSilent "You need to stay within 10m to Rob registry! - Now the registry is locked."; 5 cutText ["","PLAIN"]; _rip = false; };
      5 cutText ["","PLAIN"];

      titleText[format["You have stolen $%1, now get away before the cops arrive!",[_kassa] call life_fnc_numberText],"PLAIN"];
      deleteMarker "Marker200"; // by ehno delete maker
      life_cash = life_cash + _kassa;

      _rip = false;
      life_use_atm = false;
      uiSleep (30 + random(180));
      life_use_atm = true;
      if!(alive _robber) exitWith {};
      };
      uiSleep 300;
      _action = _shop addAction["Rob the Gas Station",life_fnc_robShops];
      _shop switchMove "";

      Bilder

      • Unbenannt1.PNG
        • 67,09 kB
        • 509 × 80
        • 185
    • 0xBADC0DED
      Fortgeschrittener
      Reaktionen
      102
      Trophäen
      10
      Beiträge
      443
      • 5. November 2016 um 20:07
      • #4
      Zitat von amogus

      Ok

      Hab ich gemacht dann bekomme ich die Meldung siehe Bild.

      Und hier mal die fn_robShop.sqf

      Spoiler anzeigen

      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 (http://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 { hintSilent "You can not rob this station!" };
      if(_robber distance _shop > 5) exitWith { hintSilent "You need to be within 5m of the cashier to rob him!" };

      if !(_kassa) then { _kassa = 1000; };
      if (_rip) exitWith { hintSilent "Robbery already in progress!" };
      if (vehicle player != _robber) exitWith { hintSilent "Get out of your vehicle!" };

      if !(alive _robber) exitWith {};
      if (currentWeapon _robber == "") exitWith { hintSilent "HaHa, you do not threaten me! Get out of here you hobo!" };
      if (_kassa == 0) exitWith { hintSilent "There is no cash in the register!" };

      _rip = true;
      _kassa = 10000 + round(random 10000);
      _shop removeAction _action;
      _shop switchMove "AmovPercMstpSsurWnonDnon";
      _chance = random(100);
      if(_chance >= 1) then {[1,format["ALARM! - Gasstation: %1 is being robbed!", _shop]] remoteExec ["life_fnc_broadcast",west]; };

      _cops = (west countSide playableUnits);
      if(_cops < 1) exitWith{[_vault,-1] remoteExec ["disableSerialization;",2]; hintSilent "There isnt enough Police to rob gas station!";};
      disableSerialization;
      5 cutRsc ["life_progress","PLAIN"];
      _ui = uiNameSpace getVariable "life_progress";
      _progress = _ui displayCtrl 38201;
      _pgText = _ui displayCtrl 38202;
      _pgText ctrlSetText format["Robbery in Progress, stay close (10m) (1%1)...","%"];
      _progress progressSetPosition 0.01;
      _cP = 0.01;
      if(_rip) then
      {
      while{true} do
      {
      uiSleep 0.85;
      _cP = _cP + 0.01;
      _progress progressSetPosition _cP;
      _pgText ctrlSetText format["Robbery in Progress, stay close (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 "!ATTENTION! robbery !ATTENTION!";
      "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 ""; hintSilent "You need to stay within 10m to Rob registry! - Now the registry is locked."; 5 cutText ["","PLAIN"]; _rip = false; };
      5 cutText ["","PLAIN"];

      titleText[format["You have stolen $%1, now get away before the cops arrive!",[_kassa] call life_fnc_numberText],"PLAIN"];
      deleteMarker "Marker200"; // by ehno delete maker
      life_cash = life_cash + _kassa;

      _rip = false;
      life_use_atm = false;
      uiSleep (30 + random(180));
      life_use_atm = true;
      if!(alive _robber) exitWith {};
      };
      uiSleep 300;
      _action = _shop addAction["Rob the Gas Station",life_fnc_robShops];
      _shop switchMove "";

      Alles anzeigen

      Mach mal folgendes draus: if (isNil _kassa) exitWith { _kassa = 1000 };

    • amogus
      Anfänger
      Reaktionen
      7
      Trophäen
      9
      Beiträge
      75
      • 5. November 2016 um 20:30
      • #5

      ja hab ich rein gemacht aber dann kommt das

      Spoiler anzeigen

      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 (http://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 { hintSilent "You can not rob this station!" };
      if(_robber distance _shop > 5) exitWith { hintSilent "You need to be within 5m of the cashier to rob him!" };

      if (isNil _kassa) exitWith { _kassa = 1000 };
      if (_rip) exitWith { hintSilent "Robbery already in progress!" };
      if (vehicle player != _robber) exitWith { hintSilent "Get out of your vehicle!" };

      if !(alive _robber) exitWith {};
      if (currentWeapon _robber == "") exitWith { hintSilent "HaHa, you do not threaten me! Get out of here you hobo!" };
      if (_kassa == 0) exitWith { hintSilent "There is no cash in the register!" };

      _rip = true;
      _kassa = 10000 + round(random 10000);
      _shop removeAction _action;
      _shop switchMove "AmovPercMstpSsurWnonDnon";
      _chance = random(100);
      if(_chance >= 1) then {[1,format["ALARM! - Gasstation: %1 is being robbed!", _shop]] remoteExec ["life_fnc_broadcast",west]; };

      _cops = (west countSide playableUnits);
      if(_cops < 1) exitWith{[_vault,-1] remoteExec ["disableSerialization;",2]; hintSilent "There isnt enough Police to rob gas station!";};
      disableSerialization;
      5 cutRsc ["life_progress","PLAIN"];
      _ui = uiNameSpace getVariable "life_progress";
      _progress = _ui displayCtrl 38201;
      _pgText = _ui displayCtrl 38202;
      _pgText ctrlSetText format["Robbery in Progress, stay close (10m) (1%1)...","%"];
      _progress progressSetPosition 0.01;
      _cP = 0.01;
      if(_rip) then
      {
      while{true} do
      {
      uiSleep 0.85;
      _cP = _cP + 0.01;
      _progress progressSetPosition _cP;
      _pgText ctrlSetText format["Robbery in Progress, stay close (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 "!ATTENTION! robbery !ATTENTION!";
      "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 ""; hintSilent "You need to stay within 10m to Rob registry! - Now the registry is locked."; 5 cutText ["","PLAIN"]; _rip = false; };
      5 cutText ["","PLAIN"];

      titleText[format["You have stolen $%1, now get away before the cops arrive!",[_kassa] call life_fnc_numberText],"PLAIN"];
      deleteMarker "Marker200"; // by ehno delete maker
      life_cash = life_cash + _kassa;

      _rip = false;
      life_use_atm = false;
      uiSleep (30 + random(180));
      life_use_atm = true;
      if!(alive _robber) exitWith {};
      };
      uiSleep 300;
      _action = _shop addAction["Rob the Gas Station",life_fnc_robShops];
      _shop switchMove "";

      Bilder

      • Unbenannt2.PNG
        • 50,42 kB
        • 511 × 61
        • 168
    • blackfisch
      Legende
      Reaktionen
      2.944
      Trophäen
      10
      Beiträge
      5.966
      Dateien
      6
      Bilder
      63
      • 5. November 2016 um 21:29
      • #6

      isNil "_kassa" nicht isNil _kassa und das gilt generell für Variablen.

      Außerdem keine Bilder von solchen Fehlern sondern Logs (siehe meine Signatur zum nachlesen) anhängen

      #MakeArmaNotWar

      Kein Support via PN & Steam! / No Support via DM & Steam!


      Mit freundlichen Grüßen
      blackfisch
      ______________________

      Web: blackfisch.me

      GitHub: GitHub.com/blackfisch

      Mail: [email protected]

      ______________________
      Wichtige Links:
      [Erklärung|Leitfaden] Code Optimierung

      [Tutorial] life_fnc_MP zu remoteExec

      Ohne Logs & entsprechende Dateien kein Support!

      ______________________

    • amogus
      Anfänger
      Reaktionen
      7
      Trophäen
      9
      Beiträge
      75
      • 5. November 2016 um 22:03
      • #7

      Ok glaube die fehler gehen nach und nach weiter.

      Hier die fn_robShop.sqf Aktuell und den rpt log.

      Spoiler anzeigen

      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 (http://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 { hintSilent "You can not rob this station!" };
      if(_robber distance _shop > 5) exitWith { hintSilent "You need to be within 5m of the cashier to rob him!" };

      if (isNil "_kassa") exitWith { _kassa = 1000 };
      if (_rip) exitWith { hintSilent "Robbery already in progress!" };
      if (vehicle player != _robber) exitWith { hintSilent "Get out of your vehicle!" };

      if !(alive _robber) exitWith {};
      if (currentWeapon _robber == "") exitWith { hintSilent "HaHa, you do not threaten me! Get out of here you hobo!" };
      if (_kassa == 0) exitWith { hintSilent "There is no cash in the register!" };

      _rip = true;
      _kassa = 10000 + round(random 10000);
      _shop removeAction _action;
      _shop switchMove "AmovPercMstpSsurWnonDnon";
      _chance = random(100);
      if(_chance >= 1) then {[1,format["ALARM! - Gasstation: %1 is being robbed!", _shop]] remoteExec ["life_fnc_broadcast",west]; };

      _cops = (west countSide playableUnits);
      if(_cops < 1) exitWith{[_vault,-1] remoteExec ["disableSerialization;",2]; hintSilent "There isnt enough Police to rob gas station!";};
      disableSerialization;
      5 cutRsc ["life_progress","PLAIN"];
      _ui = uiNameSpace getVariable "life_progress";
      _progress = _ui displayCtrl 38201;
      _pgText = _ui displayCtrl 38202;
      _pgText ctrlSetText format["Robbery in Progress, stay close (10m) (1%1)...","%"];
      _progress progressSetPosition 0.01;
      _cP = 0.01;
      if(_rip) then
      {
      while{true} do
      {
      uiSleep 0.85;
      _cP = _cP + 0.01;
      _progress progressSetPosition _cP;
      _pgText ctrlSetText format["Robbery in Progress, stay close (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 "!ATTENTION! robbery !ATTENTION!";
      "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 ""; hintSilent "You need to stay within 10m to Rob registry! - Now the registry is locked."; 5 cutText ["","PLAIN"]; _rip = false; };
      5 cutText ["","PLAIN"];

      titleText[format["You have stolen $%1, now get away before the cops arrive!",[_kassa] call life_fnc_numberText],"PLAIN"];
      deleteMarker "Marker200"; // by ehno delete maker
      life_cash = life_cash + _kassa;

      _rip = false;
      life_use_atm = false;
      uiSleep (30 + random(180));
      life_use_atm = true;
      if!(alive _robber) exitWith {};
      };
      uiSleep 300;
      _action = _shop addAction["Rob the Gas Station",life_fnc_robShops];
      _shop switchMove "";

      Dateien

      arma3_2016-11-05_21-47-24.txt 429,87 kB – 227 Downloads
    • blackfisch
      Legende
      Reaktionen
      2.944
      Trophäen
      10
      Beiträge
      5.966
      Dateien
      6
      Bilder
      63
      • 5. November 2016 um 22:20
      • #8

      Okay, mir reichts... gib mir ne Sekunde, ich check das mal komplett durch... :D

      #MakeArmaNotWar

      Kein Support via PN & Steam! / No Support via DM & Steam!


      Mit freundlichen Grüßen
      blackfisch
      ______________________

      Web: blackfisch.me

      GitHub: GitHub.com/blackfisch

      Mail: [email protected]

      ______________________
      Wichtige Links:
      [Erklärung|Leitfaden] Code Optimierung

      [Tutorial] life_fnc_MP zu remoteExec

      Ohne Logs & entsprechende Dateien kein Support!

      ______________________

    • amogus
      Anfänger
      Reaktionen
      7
      Trophäen
      9
      Beiträge
      75
      • 5. November 2016 um 22:22
      • #9

      ok

      vielen dank :thumbup:

    • blackfisch
      Legende
      Reaktionen
      2.944
      Trophäen
      10
      Beiträge
      5.966
      Dateien
      6
      Bilder
      63
      • 5. November 2016 um 22:29
      • #10
      C
      params [
        ["_shop",objNull,[objNull]],  //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",objNull,[objNull]], //Can you guess? Alright, it's the player, or the "caller". The object is 0, the person activating the object is 1
        ["_action"] //Action name
      ];
      
      
      
      
      private _kassa = 1000; //The amount the shop has to rob, you could make this a parameter of the call (community.bistudio.com/wiki/addAction). Give it a try and post below
      if (isNil "life_robCount") then {life_robCount = 1;} else {life_robCount = life_robCount + 1;};
      if(side _robber != civilian) exitWith { hintSilent "You can not rob this station!" };
      if(_robber distance _shop > 5) exitWith { hintSilent "You need to be within 5m of the cashier to rob him!" };
      if (!isNull objectParent _robber) exitWith { hintSilent "Get out of your vehicle!" };
      if !(alive _robber) exitWith {};
      if (currentWeapon _robber isEqualTo "") exitWith { hintSilent "HaHa, you do not threaten me! Get out of here you hobo!" };
      if (_kassa isEqualTo 0) exitWith { hintSilent "There is no cash in the register!" };
      if (life_robCount > 1) exitWith {};
      
      
      
      
      _kassa = 10000 + round(random 10000);
      _shop removeAction _action;
      _shop switchMove "AmovPercMstpSsurWnonDnon";
      _chance = random(100);
      if(_chance >= 1) then {[1,format["ALARM! - Gasstation: %1 is being robbed!", _shop]] remoteExec ["life_fnc_broadcast",west]; };
      
      
      
      
      _cops = (west countSide playableUnits);
      if(_cops < 1) exitWith{[_vault,-1] remoteExec ["disableSerialization;",2]; hintSilent "There isnt enough Police to rob gas station!";};
      disableSerialization;
      5 cutRsc ["life_progress","PLAIN"];
      private _ui = uiNameSpace getVariable "life_progress";
      private _progress = _ui displayCtrl 38201;
      private _pgText = _ui displayCtrl 38202;
      _pgText ctrlSetText format["Robbery in Progress, stay close (10m) (1%1)...","%"];
      _progress progressSetPosition 0.01;
      private _cP = 0.01;
      
      
      
      
      while{true} do {
        uiSleep 0.85;
        _cP = _cP + 0.01;
        _progress progressSetPosition _cP;
        _pgText ctrlSetText format["Robbery in Progress, stay close (10m) (%1%2)...",round(_cP * 100),"%"];
        private _Pos = position player; // by ehno: get player pos
        private _marker = createMarker ["Marker200", _Pos]; //by ehno: Place a Maker on the map
        "Marker200" setMarkerColor "ColorRed";
        "Marker200" setMarkerText "!ATTENTION! robbery !ATTENTION!";
        "Marker200" setMarkerType "mil_warning";
        if(_cP >= 1) exitWith { life_robCount = 0; };
        if(_robber distance _shop > 10.5) exitWith { life_robCount = 0; };
        if!(alive _robber) exitWith { life_robCount = 0; };
      };
      if!(alive _robber) exitWith { life_robCount = 0; };
      if(_robber distance _shop > 10.5) exitWith { deleteMarker "Marker200"; _shop switchMove ""; hintSilent "You need to stay within 10m to Rob registry! - Now the registry is locked."; 5 cutText ["","PLAIN"]; _rip = false; };
      5 cutText ["","PLAIN"];
      
      
      
      
      titleText[format["You have stolen $%1, now get away before the cops arrive!",[_kassa] call life_fnc_numberText],"PLAIN"];
      deleteMarker "Marker200"; // by ehno delete maker
      life_cash = life_cash + _kassa;
      life_robCount = 0; //Debug
      life_use_atm = false;
      uiSleep (30 + random(180));
      life_use_atm = true;
      
      
      
      
      uiSleep 300;
      _action = _shop addAction["Rob the Gas Station",life_fnc_robShops];
      _shop switchMove "";
      Alles anzeigen

      Da waren einige Logikdummheiten drin die ich mal rausgefischt habe und nen kleinen Debug eingefügt habe (dass die nicht 2x gleichzeitig ausrauben können)

      #MakeArmaNotWar

      Kein Support via PN & Steam! / No Support via DM & Steam!


      Mit freundlichen Grüßen
      blackfisch
      ______________________

      Web: blackfisch.me

      GitHub: GitHub.com/blackfisch

      Mail: [email protected]

      ______________________
      Wichtige Links:
      [Erklärung|Leitfaden] Code Optimierung

      [Tutorial] life_fnc_MP zu remoteExec

      Ohne Logs & entsprechende Dateien kein Support!

      ______________________

    • amogus
      Anfänger
      Reaktionen
      7
      Trophäen
      9
      Beiträge
      75
      • 5. November 2016 um 22:37
      • #11

      Ok

      Vielen Dank dafür werde es testen und mich nochmal melden.

    • amogus
      Anfänger
      Reaktionen
      7
      Trophäen
      9
      Beiträge
      75
      • 5. November 2016 um 22:58
      • #12

      Ok

      Geht immer noch nicht hier mal der Fehler mit rpt


      Spoiler anzeigen

      22:51:35 "----------------------------------------------------------------------------------------------------"
      22:51:35 " End of Altis Life Client Init :: Total Execution Time 7.25598 seconds "
      22:51:35 "----------------------------------------------------------------------------------------------------"
      22:51:36 Fresnel k must be >0, given n=1,k=0
      22:51:36 Fresnel n must be >0, given n=0,k=0
      22:51:36 Fresnel k must be >0, given n=0.001,k=0
      22:52:15 slb2k11_city\proxys\yetski.p3d: vehicle, config class missing
      22:52:15 slb2k11_city\proxys\yetskired.p3d: vehicle, config class missing
      22:52:32 Error in expression <playableUnits);
      if(_cops < 1) exitWith{[_vault,-1] remoteExec ["disableSerializa>
      22:52:32 Error position: <_vault,-1] remoteExec ["disableSerializa>
      22:52:32 Error Nicht definierte Variable in Ausdruck: _vault
      22:52:32 File mpmissions\__CUR_MP.[lexicon]Tanoa[/lexicon]\core\actions\fn_robShops.sqf, line 21
      22:52:32 Error in expression <_MP.Tanoa\core\actions\fn_robShops.sqf"
      params [
      ["_shop",objNull,[objNull]],
      [>
      22:52:32 Error position: <params [
      ["_shop",objNull,[objNull]],
      [>
      22:52:32 Error 1 Elemente angegeben, 2 erwartet
      22:52:32 File mpmissions\__CUR_MP.[lexicon]Tanoa[/lexicon]\core\actions\fn_robShops.sqf, line 1

      Edit:

      sry hab was falsch gemacht meld mich gleich wieder

    • blackfisch
      Legende
      Reaktionen
      2.944
      Trophäen
      10
      Beiträge
      5.966
      Dateien
      6
      Bilder
      63
      • 5. November 2016 um 23:09
      • #13
      C
      params [
        ["_shop",objNull,[objNull]],  //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",objNull,[objNull]], //Can you guess? Alright, it's the player, or the "caller". The object is 0, the person activating the object is 1
        ["_action",0,[0]] //Action name
      ];
      
      
      
      
      private _kassa = 1000; //The amount the shop has to rob, you could make this a parameter of the call (community.bistudio.com/wiki/addAction). Give it a try and post below
      if (isNil "life_robCount") then {life_robCount = 1;} else {life_robCount = life_robCount + 1;};
      if(side _robber != civilian) exitWith { hintSilent "You can not rob this station!" };
      if(_robber distance _shop > 5) exitWith { hintSilent "You need to be within 5m of the cashier to rob him!" };
      if (!isNull objectParent _robber) exitWith { hintSilent "Get out of your vehicle!" };
      if !(alive _robber) exitWith {};
      if (currentWeapon _robber isEqualTo "") exitWith { hintSilent "HaHa, you do not threaten me! Get out of here you hobo!" };
      if (_kassa isEqualTo 0) exitWith { hintSilent "There is no cash in the register!" };
      if (life_robCount > 1) exitWith {};
      
      
      
      
      _kassa = 10000 + round(random 10000);
      _shop removeAction _action;
      _shop switchMove "AmovPercMstpSsurWnonDnon";
      _chance = random(100);
      if(_chance >= 1) then {[1,format["ALARM! - Gasstation: %1 is being robbed!", _shop]] remoteExec ["life_fnc_broadcast",west]; };
      
      
      
      
      _cops = (west countSide playableUnits);
      if(_cops < 1) exitWith { hintSilent "There isnt enough Police to rob gas station!"; life_robCount = 0; };
      disableSerialization;
      5 cutRsc ["life_progress","PLAIN"];
      private _ui = uiNameSpace getVariable "life_progress";
      private _progress = _ui displayCtrl 38201;
      private _pgText = _ui displayCtrl 38202;
      _pgText ctrlSetText format["Robbery in Progress, stay close (10m) (1%1)...","%"];
      _progress progressSetPosition 0.01;
      private _cP = 0.01;
      
      
      
      
      while{true} do {
        uiSleep 0.85;
        _cP = _cP + 0.01;
        _progress progressSetPosition _cP;
        _pgText ctrlSetText format["Robbery in Progress, stay close (10m) (%1%2)...",round(_cP * 100),"%"];
        private _Pos = position player; // by ehno: get player pos
        private _marker = createMarker ["Marker200", _Pos]; //by ehno: Place a Maker on the map
        "Marker200" setMarkerColor "ColorRed";
        "Marker200" setMarkerText "!ATTENTION! robbery !ATTENTION!";
        "Marker200" setMarkerType "mil_warning";
        if(_cP >= 1) exitWith { life_robCount = 0; };
        if(_robber distance _shop > 10.5) exitWith { life_robCount = 0; };
        if!(alive _robber) exitWith { life_robCount = 0; };
      };
      if!(alive _robber) exitWith { life_robCount = 0; };
      if(_robber distance _shop > 10.5) exitWith { deleteMarker "Marker200"; _shop switchMove ""; hintSilent "You need to stay within 10m to Rob registry! - Now the registry is locked."; 5 cutText ["","PLAIN"]; _rip = false; };
      5 cutText ["","PLAIN"];
      
      
      
      
      titleText[format["You have stolen $%1, now get away before the cops arrive!",[_kassa] call life_fnc_numberText],"PLAIN"];
      deleteMarker "Marker200"; // by ehno delete maker
      life_cash = life_cash + _kassa;
      life_robCount = 0; //Debug
       
      life_use_atm = false;
      uiSleep (30 + random(180));
      life_use_atm = true;
      
      
      
      
      uiSleep 300;
      _action = _shop addAction["Rob the Gas Station",life_fnc_robShops];
      _shop switchMove "";
      Alles anzeigen

      #MakeArmaNotWar

      Kein Support via PN & Steam! / No Support via DM & Steam!


      Mit freundlichen Grüßen
      blackfisch
      ______________________

      Web: blackfisch.me

      GitHub: GitHub.com/blackfisch

      Mail: [email protected]

      ______________________
      Wichtige Links:
      [Erklärung|Leitfaden] Code Optimierung

      [Tutorial] life_fnc_MP zu remoteExec

      Ohne Logs & entsprechende Dateien kein Support!

      ______________________

    • amogus
      Anfänger
      Reaktionen
      7
      Trophäen
      9
      Beiträge
      75
      • 5. November 2016 um 23:11
      • #14

      so jetzt aber

      Spoiler anzeigen

      23:08:10 " End of Altis Life Client Init :: Total Execution Time 4.23206 seconds "
      23:08:10 "----------------------------------------------------------------------------------------------------"
      23:08:26 Error in expression <playableUnits);
      if(_cops < 1) exitWith{[_vault,-1] remoteExec ["disableSerializa>
      23:08:26 Error position: <_vault,-1] remoteExec ["disableSerializa>
      23:08:26 Error Nicht definierte Variable in Ausdruck: _vault
      23:08:26 File mpmissions\__CUR_MP.[lexicon]Tanoa[/lexicon]\core\actions\fn_robShops.sqf, line 24
      23:08:26 Error in expression <_MP.Tanoa\core\actions\fn_robShops.sqf"
      params [
      ["_shop",objNull,[objNull]],
      [>
      23:08:26 Error position: <params [
      ["_shop",objNull,[objNull]],
      [>
      23:08:26 Error 1 Elemente angegeben, 2 erwartet
      23:08:26 File mpmissions\__CUR_MP.[lexicon]Tanoa[/lexicon]\core\actions\fn_robShops.sqf, line 1

      Dateien

      arma3_2016-11-05_22-46-51.txt 485,13 kB – 431 Downloads
    • amogus
      Anfänger
      Reaktionen
      7
      Trophäen
      9
      Beiträge
      75
      • 5. November 2016 um 23:29
      • #15

      Es Funktioniert :thumbup: :thumbup: :thumbup:

      Vielen dank hail

    • Nickel Komet
      Amateur
      Reaktionen
      20
      Trophäen
      9
      Beiträge
      238
      Bilder
      1
      • 22. März 2017 um 21:55
      • #16

      kann man auch einstellen das im chatfenster angezeigt wird welche tankstelle ausgeraubt wird?

    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] MrKraken's Tankstellenraub Script

      • Exodoos
      • 17. September 2016 um 21:46
      • Tutorials & Releases
    • Banken ausrauben | Gold

      • Dukes
      • 29. Juni 2017 um 15:05
      • Hilfeforum
    • Error in expression <this addAction["TANKSTELLE ÜBERFALLEN",life_>

      • TaktischerSpeck
      • 3. Juli 2017 um 08:47
      • Hilfeforum
    • [Sammelthread] Scripts/Links/Tutorials/Anleitungen ArmA 3

      • Stig
      • 2. September 2016 um 18:29
      • Tutorials & Releases
    • GreenLife Ausrauben eines Drogendealers

      • ZuZu
      • 28. März 2017 um 21:55
      • Tutorials & Releases

    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™