fett_li 15 Posted May 27, 2014 I got this error quite a few times during testing in ArmA: Error in expression <uments call _code; } else { _arguments call (call compile _code); }; } forEach > Error position: <call (call compile _code); }; } forEach > Error call: Type Script, expected code File A3\Functions_F_EPA\Misc\fn_executeStackedEventHandler.sqf, line 41 Error in expression <uments call _code; } else { _arguments call (call compile _code); }; } forEach > Error position: <call (call compile _code); }; } forEach > Error generic error in expression File A3\Functions_F_EPA\Misc\fn_executeStackedEventHandler.sqf, line 41 Could it be possible, that the probleme is, that in line 41 there is two times a call? See ll29-43: //Process data { //Data item parameters private ["_code", "_arguments"]; _code = [_x, 2, "", [{}, ""]] call BIS_fnc_param; _arguments = [_x, 3, []] call BIS_fnc_param; if (typeName _code != typeName "") then { //Execute code _arguments call _code; } else { //Execute function _arguments call (call compile _code); }; } forEach _data; I don't want to open up a new feedback ticket, unless I can be sure, that this is an error. Share this post Link to post Share on other sites
cuel 25 Posted May 27, 2014 Have you tried changing your double call to just _arguments call compile _code ? Share this post Link to post Share on other sites
fight9 14 Posted May 28, 2014 Have you tried sending your _code as code {} and not as a string ""? Line 41 is formatting a string into a function name. If you are trying to send script, and not a function, use the brackets instead. Share this post Link to post Share on other sites
fett_li 15 Posted June 3, 2014 Actually I dind't try anything to fix this because it's BIS data and I don't know when it's executed so testing this is kind of hard... I mean it could be that this script will only get code which has another code as return value, only then it would make sense. But I'm getting the script error. I'll just open up a new ticket, maybe BIS can tell me more. http://feedback.arma3.com/view.php?id=19062 Every vote is appreciated :) Share this post Link to post Share on other sites
albertfish 11 Posted June 3, 2014 What is your input? I think if the code you supply has an error, you will get this error report. Share this post Link to post Share on other sites
fett_li 15 Posted June 3, 2014 I don't call it. It get's called by BIS_functions. Share this post Link to post Share on other sites
albertfish 11 Posted June 4, 2014 But when you call BIS_fnc_addStackedEventHandler you do pass code into it, right? That code is executed in the function you are talking about. So the code you pass into BIS_fnc_addStackedEventHandler can cause an error in fn_executeStackedEventHandler. Share this post Link to post Share on other sites