mjc4wilton / BackpackOnChestRedux

A refactor of DerZade's original BackpackOnChest mod for Arma 3
MIT License
5 stars 5 forks source link

Missing Paramter in Example+Description of bocr_main_fnc_addChestpack #18

Open Andx667 opened 3 hours ago

Andx667 commented 3 hours ago

Arma 3 Version: x.xx (stable / rc / dev) CBA Version: 3.x.x (stable / dev + commit hash) ACE3 Version: 3.x.x (stable / dev + commit hash)

Mods:

- CBA_A3
- ace

Description: In https://github.com/mjc4wilton/BackpackOnChestRedux/blob/c559ce2d42e1f7b8e06e7f6d36168f458b4f1170/addons/main/functions/fnc_addChestpack.sqf#L10 the example and the description is missing the backpackload parameter

Steps to reproduce:

Where did the issue occur?

Additional information:

RPT log file:

Andx667 commented 3 hours ago

RPT Excerpt when ommitting the paramter while calling the function.

14:34:12 Error in expression <es", []], ["_backpackLoad", nil]];

if (_backpackLoad isEqualTo nil) then { _bac> 14:34:12 Error position: <_backpackLoad isEqualTo nil) then { _bac> 14:34:12 Error Undefined variable in expression: _backpackload 14:34:12 File x\bocr\addons\main\functions\fnc_addChestpack.sqf..., line 22 14:34:12 Error in expression <, _backpackLoadout, _backpackVariables, _backpackLoad], true];

if !(vehicle _u> 14:34:12 Error position: <_backpackLoad], true];

if !(vehicle _u> 14:34:12 Error Undefined variable in expression: _backpackload 14:34:12 File x\bocr\addons\main\functions\fnc_addChestpack.sqf..., line 52