Page MenuHomeFeedback Tracker

Getting error with BIS_fnc_basicBackpack
New, WishlistPublic


10:48:01 Error in expression <put = _this;_output = "";
if (_input == "") exitWith {[] call
BIS_fnc_basicBa>10:48:01 Error position: <== "") exitWith
{[] call BIS_fnc_basicBa>10:48:01 Error ==: Type Array,
expected Number,String,Not a Number,Object,Side,Group,Text,Config entry,Display
(dialog),Control,Network Object,Team member,Task,Location10:48:01 File
A3\functions_f\inventory\fn_basicBackpack.sqf, line 205 {F27208}


Legacy ID
Error Message
Steps To Reproduce

baseBackpack = ["b_assaultpack_rgr_medic"] call BIS_fnc_basicBackpack;

Event Timeline

Bohemia edited Steps To Reproduce. (Show Details)Oct 7 2015, 12:45 PM
Bohemia set Category to Error Message.
Bohemia set Reproducibility to Always.
Bohemia set Severity to None.
Bohemia set Resolution to Open.
Bohemia set Legacy ID to 163024250.May 8 2016, 12:54 PM
Bohemia added a subscriber: Bohemia.

Confirmed on stable. Just tried it.

Nitro added a subscriber: Nitro.May 8 2016, 12:54 PM
Nitro added a comment.Oct 8 2015, 9:45 AM

agreed +1

And why are you passing Array to the function when example in the function header clearly shows it should be string?

baseBackpack = "b_assaultpack_rgr_medic" call BIS_fnc_basicBackpack;

This works ^^^^^^^

R3vo added a subscriber: R3vo.May 8 2016, 12:54 PM
R3vo added a comment.Oct 8 2015, 12:26 PM

The description says is can be called like this:

    ["backPackClassName"] call BIS_fnc_basicBackpack;

But it only works like this:

    "backPackClassName" call BIS_fnc_basicBackpack;

So I guess they should simply change the description.

Yeah someone changed correct example on BIKI to the wrong one (I already changed it back). The ingame function header was always showing the correct example.

Hiya Killzone - thank you mate, yeah - got it from the BIKI description! Silly me! Cheers!

Well spotted, R3VO - that was where the problem was!