Jump to content
Sign in to follow this  
Rawshark

Basic scripting issue

Recommended Posts

So I am very new to scripting and am trying to make a basic greeting for an Arma 3 MP server. The hint.sqf file looks like this:

_theGreeting = "Welcome";

Hint_theGreeting;

Very basic but there is a problem when I test it in the Eden editor - I get the following error 
|#|Hint_theGreeting;'
Error undefined variable in expression: hint_thegreeting

l6tbjNf.png

I have no idea what I am missing here but any help would be amazing. Thanks!
 

Share this post


Link to post
Share on other sites

You need to add a whitespace between the command and argument: 

hint _theGreeting;
  • Like 1

Share this post


Link to post
Share on other sites

Still no luck! I'm using ArmA edit and I have it written like:

 

wNRQ25n.png

 

but I still get the same error message

 

Share this post


Link to post
Share on other sites

First of all, try and get poseidon. It's so amazing, I have to contain myself.

Like TeTeT wrote, hint "something" shouldn't return an error.

Type it out manually and see if the error persists.

 

Cheers

Share this post


Link to post
Share on other sites

 

but I still get the same error message

 This means you are still calling the old file from cache or otherwise. The new code is correct and should work.

  • Like 1

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  

×