Newbie Question - Could use help though
Hi, this is probably going to sound like an incredibly simple question, mainly because it is one... but i'm still trying to learn my way around everything, so i'd appreciate the help.
Basiclly, what I want to know is how do I print a variable within a string? For example, I want to do something like this: Code:
show_hudmessage(0, "Class Wars - [Duel Mode] : Attacking" blueclass1 " VS Defending " redclass1 "!" , g_displayMsg) |
Re: Newbie Question - Could use help though
Something like. Basicaly, you have to use '%s'.
mystring1 = "blueclass1"; mystring2 = "redclass1"; show_hudmessage(0, "Class Wars - [Duel Mode] : Attacking %s VS Defending %s!" , mystring1, mystring2 ); |
Re: Newbie Question - Could use help though
Thanks! Really helped a lot. +Karma.
|
| All times are GMT -4. The time now is 16:14. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.