Jump to content
Sign in to follow this  
Orca

nOOb var question

Recommended Posts

Orca

how do you inject variables into a string parameter

eg

Func Splash($text)
SplashTextOn ( "Level Progress", $text, 550, 22, 0, 0)
EndFunc
Splash("Putting element "+$element+" in slot "+$X+", "+$Y+"!")

I AM ORCA!! A VERY POWERFUL WHALE!!!

Share this post


Link to post
Share on other sites
Matt @ MPCS

Try this:

Func Splash($text)
   SplashTextOn ( "Level Progress", $text, 550, 22, 0, 0)
EndFunc

Splash("Putting element " & $element & " in slot " & $X & ", " & $Y & "!")

I haven't tested the coe, but it should work.

*** Matt @ MPCS

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×