Jump to content
  • 0

Type String, expected Array, when it is an array grrrrrr


Sandbird

Question

I am grabbing some data from a table row and bring the results to a value called GIMMELIST.

Then i do.

_list = GIMMELIST;
diag_log format [">>>>>> _list is: %1",_list];     //  ["[["012345","123454","123312"]]"]
_list = _list select 0;
if(!(isNil "_list") && {_list != "[[]]"}) then {
  _list = call compile _list;
  _newlist = [_list,2] call array_reduceSizeReverse;
};
.....
But i am getting

Error count: Type String, expected Array,Config entry

this error is for line _newlist = [_list,2] call array_reduceSizeReverse;

WTF? I am making it in an array...Why is it complaining thats its not ?

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

I am already broken :L

I hate arma, i hate arma bugs and i hate this gameeeee.........back to coding....

 

ps i just realized something, (totally irrelevant to this).

In system_monitor.sqf  the check that checks if its a vehicle or a building is wrong.

Not all buildings that players build are ModularItems.

 

To be sure, change that line to this:

if ((_hiveResponse select 2) isKindOf "ModularItems" || ((_hiveResponse select 2) in dayz_allowedObjects)) then {

(if you have added all the objects player can build in that values in variables.sqf :P)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...