I want to be able to transform a value like 50, 70, 3 whatever it is into a time format. Like 50 would be written as 0:50, 70 would be 1:10, 3 would be 0:03 etc. same for thousands, if a value is 1000 it should display on a HUD as 1,000. I see string.comma. It exists. But it doesn't do all that I want.
[QUOTE=Robotboy655;46165087][url]http://wiki.garrysmod.com/page/string/FormattedTime[/url][/QUOTE]
And for 1,000?
[url]http://wiki.garrysmod.com/page/string/Comma[/url] should do the trick. If it doesn't, tell us what exactly you want. Because it does exactly what you want.
[QUOTE=Robotboy655;46165267][url]http://wiki.garrysmod.com/page/string/Comma[/url] should do the trick. If it doesn't, tell us what exactly you want. Because it does exactly what you want.[/QUOTE]
Sorry if I'm understanding this wrong but...
[quote]Inserts commas for every [b]third[/b] digit.[/quote]
In that case output = 100,0 ? Unless it goes backward. Im gonna try it now
no.
1 = 1
10 = 10
100 = 100
1000 = 1,000
10000 = 10,000
100000 = 100,000
1000000 = 1,000,000
and so on.
Sorry, you need to Log In to post a reply to this thread.