Jump to content
Sign in to follow this  
Ava-anCh3

concatenate of string an variable

Recommended Posts

does anyone know how to concatenate a string with a variable?

using titleText ["Show this text", "PLAIN"]

lets say i have a gobal variable integer called score which is value 15 and i want to display this in titleText

i tried using titleText with + to concanenate

TitleText ["Your score is "+format["%1",score]+"/24 target", "PLAIN", 1]

Share this post


Link to post
Share on other sites

why not try

TitleText [ format["Your score is %1/24 target",score], "PLAIN", 1]

I would think the other method should somehow work as well... odd

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  

×