Jump to content

Recommended Posts

I'm currently editing my trainings mission with some spawning and admin management stuff

and i noticed a new error that pops up when the mission is started.
 

params["_player"];

if (!(isNull (findDisplay 999))) exitWith { closeDisplay 2; };

createDialog "adminMenu";


The code is from my openMenu function and the above mentioned error is thrown at line 3.
Can't really tell where the issue lies, i already tried to remove the semicolon at "closeDisplay 2" but the result is the same! 

Share this post


Link to post
Share on other sites

Hi,

i'm not experienced with display stuff, but i saw on the wiki that closeDisplay requires(?) a parameter in front of it (display closeDisplay exitCode). Not sure, if that causes the problem, i'm just guessing.

  • Like 1

Share this post


Link to post
Share on other sites

There are also invisible characters in your code:

 

H4eVIFu.png

 

Delete the red dots.

  • Like 2

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

×