Jump to content
Sign in to follow this  
AliMag

Help with dialog

Recommended Posts

Hi,

I have a simple debug dialog that I use during mission development to test variables and call expressions for debugging purposes. The dialog has only 3 controls. An edit control and 2 command buttons (Ok and Close). The ID of the edit control is 99.

The action property of the Ok button is:

action = "call (ctrlText 99)";

In other words, clicking the Ok button execute (using the call statement) the expression that I've typed in the edit box.

So if I type player switchCamera "external" in the edit box and click Ok, the player view should change to external.

This was working perfectly in OFP. Now, nothing happens.

It's not like the call command is not working anymore because if I type directly in the Ok button action property it works:

action = "call {player switchCamera ""external""}"; works perfectly.

I've tried typing the expression as above in the edit box, nada.

Again, what troubles me is that was working perfectly in OFP.

Any help will be appreciated.

Thanks in advance

Cheers

Share this post


Link to post
Share on other sites

Solved!

The string expression that you're executing must be compiled before:

call (compile <expression>)

Edited by AliMag

Share this post


Link to post
Share on other sites

Please post how you solved it in case others have the same problem. :)

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
Sign in to follow this  

×