Jump to content

[Help] Mili-seconds to seconds


Recommended Posts

Posted

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 ?

Posted
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

Posted

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 
  

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...