Jump to content

nOOb var question


Orca
 Share

Recommended Posts

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!!!

Link to comment
Share on other sites

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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...