BradApex 9 Posted August 30, 2018 Hey people, I am having some issues with the GUI message function with a script I am making, I have the script below and I was wondering if you can help me correct the issue. It gives me the error "Generic error in expression" params["_target","_question"]; _question = ["You have been offered a job with the EMS Department do you accept?"] spawn BIS_fnc_guiMessage; waitUntil {!isNil "_question"}; if (_question) then { ["Status", "You have accepted the job offer to work at the EMS Department.", "amber"] call APX_fnc_show; ems = true; } else { ["Status", "You declined to work in the EMS Department", "amber"] call APX_fnc_show; ems = false; }; Share this post Link to post Share on other sites
7erra 629 Posted August 30, 2018 Maybe you are running this script in unsuspended environment? The waitUntil statement might cause the problem. Where and how are you calling the script? Share this post Link to post Share on other sites
BradApex 9 Posted August 30, 2018 _data in a Dialog when I click the player's name it calls [_data] call APX_fnc_emsVariables; Share this post Link to post Share on other sites
7erra 629 Posted August 31, 2018 Yeah that's the problem. call will not allow supsension (sleep, uiSleep, waitUntil). Try spawn instead. Keep in mind that this will not get you a return value. Share this post Link to post Share on other sites