preister / Celts_Altis_Life

Celts Clan Arma 3 Altis Life RPG Multiplayer mission
6 stars 5 forks source link

Add a functionality which charges people with attempted robbery if they dont finish the robbery #62

Closed preister closed 9 years ago

preister commented 9 years ago

Tested with jeweler in the BugFix Branch

preister commented 9 years ago

There was a strange code causing this syntax error:

Error in expression <m of the jeweller to rob him!" };

if !(_kassa) then { _kassa = 1000; };
if (_ri>
  Error position: <_kassa) then { _kassa = 1000; };
if (_ri>
  Error Undefined variable in expression: _kassa
File mpmissions\__CUR_MP.Altis\core\actions\fn_robJewellers.sqf, line 18
Duubz commented 9 years ago

If I remember correctly _kassa variable is commented out, so this bit of code is pointless - hence the error. It should work ok with the "if !(_kassa) then { _kassa = 1000; };" as this refers to how much money is in the till, but it just gets told to pay out between 30k - 75k anyways I think.

preister commented 9 years ago

Yeah I just got rid of it for now in both robShops and robJeweler just no need to have this code in if its not used and causing trouble. - If we want to have something resembling a "global" economy there is anyway a lot more work necessary than just this so adding it back in when we actually need it seems the more sensible approach.

preister commented 9 years ago

Tested :+1:

preister commented 9 years ago

Part of #68