Alright so i have read [url=http://wiki.garrysmod.com/page/string/gsub]this[/url] however i still have questions.
I'm trying to do something like this
Config:
var = "Hello the owners name is %s and hes cool"
so how would i get %s to change to like a var that i want
If you have more questions post then below thanks!
Use string.format for replacing variables like that, not gsub. gsub could be used but it seems to be that string.format is what you're looking for
[QUOTE=BillyOnWiiU;49987113]Use string.format for replacing variables like that, not gsub. gsub could be used but it seems to be that string.format is what you're looking for[/QUOTE]
I actually got it with gsub! Thanks tho!
Sorry, you need to Log In to post a reply to this thread.