Hell-Mate Posted March 9, 2014 Posted March 9, 2014 Hello community ,, topic's subjects says it, i want to know hot to convert mili secs to seconds for example if i want to put num in seconds not mili seconds in the setTimer instead of 2000 i put 2 and so on so how to let the function understand the num in seconds ?
Bonsai Posted March 9, 2014 Posted March 9, 2014 1 sec = 1000 milliseconds. Shhh, don't make his brain explode
Hell-Mate Posted March 9, 2014 Author Posted March 9, 2014 1 sec = 1000 milliseconds. Shhh, don't make his brain explode haha. is he talking right way ? i think he is right but i should write it another way. right ?
Bonsai Posted March 9, 2014 Posted March 9, 2014 You want to put e.g. 15 when using a Timer instead of 15000? Won't work. But you could do 15*1000... if thats easier for you.
Renkon Posted March 9, 2014 Posted March 9, 2014 _setTimer = setTimer function setTimer(f, i, q, ...) return _setTimer(f, i*1000, q, unpack({...})) end
Hell-Mate Posted March 10, 2014 Author Posted March 10, 2014 idk why writing some zeros are that difficult lol. for sure its not for me .. its for client writing in the Edit box .. got it ? btw thanks all i used the *1000 thing
teQuilla Posted March 10, 2014 Posted March 10, 2014 If adding 3 zeros is hard for you , use this script everytime you want to convert seconds to milliseconds function sToMs(s) return s*1000 end sToMs(5) -- -> 5000
Hell-Mate Posted March 10, 2014 Author Posted March 10, 2014 Never mind, i just used the getGUIText argument * 1000. Thanks anyway
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now