Sandbird Posted October 29, 2014 Report Share Posted October 29, 2014 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 More sharing options...
0 Sandbird Posted October 29, 2014 Author Report Share Posted October 29, 2014 nevermind...i am an idiot....should have done : _list = _list select 0 select 0; xBowBii 1 Link to comment Share on other sites More sharing options...
0 jahangir13 Posted October 30, 2014 Report Share Posted October 30, 2014 jo ,) There is no spoon. Sandbird: you are coding too much...that's completely breaking you if it's with this Arma language. This are the first signs ;)) Link to comment Share on other sites More sharing options...
0 Sandbird Posted October 30, 2014 Author Report Share Posted October 30, 2014 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) Linux 1 Link to comment Share on other sites More sharing options...
Question
Sandbird
I am grabbing some data from a table row and bring the results to a value called GIMMELIST.
Then i do.
But i am gettingError 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
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 accountSign in
Already have an account? Sign in here.
Sign In Now