Jump to content
BradApex

Help with BIS_fnc_GUIMessage

Recommended Posts

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

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

_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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×