[Expression2] How to use set name with a changing value?
2 replies, posted
I have this little music player E2, and I want to use setName to have the name of the E2 change to whatever string "Filename" is.
I've tried - setName("Now playing" Filename)
But that doesn't seem to work, any suggestions? I've seen it done before, I just don't know how to do it myself
PS- My motive behind this is that some filenames are too long to be shown on wire text screens properly.
[code]
setName("Now playing: " + Filename)
[/code]
This would be one of the first things you learn when using E2, you should really look at some tutorials for it.
Also on a side note, you should use the [URL="wiremod.com"]Wiremod forums[/URL] instead as you'll get better answers over there, as well as this forum is meant for Gmod development.
[QUOTE=bigdogmat;50287545][code]
setName("Now playing: " + Filename)
[/code]
This would be one of the first things you learn when using E2, you should really look at some tutorials for it.
Also on a side note, you should use the [URL="wiremod.com"]Wiremod forums[/URL] instead as you'll get better answers over there, as well as this forum is meant for Gmod development.[/QUOTE]
Thanks!
Sorry, you need to Log In to post a reply to this thread.