scratcher911 Posted September 13, 2012 Posted September 13, 2012 Can somebody post that function witch transfer milliseconds to format like this 00:00:00 I saw it somewhere on forum but I can't find it. Thanks, Scratcher
manve1 Posted September 13, 2012 Posted September 13, 2012 what do you mean? like real time? Looking for tutorials or information? check out: www.simpleask.co.uk
Castillo Posted September 13, 2012 Posted September 13, 2012 function convertTime ( ms ) if ( ms and type ( ms ) == "number" ) then local mins = math.floor ( ms / 60000 ) local hours = math.floor ( mins / 60 ) local secs = math.floor ( ( ms / 1000 ) % 60 ) return string.format ( "%s:%s:%s", hours, ( mins - hours * 60 ), secs ) end end San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
scratcher911 Posted September 13, 2012 Author Posted September 13, 2012 like it I have 59000 milliseconds it will show like 00:59:00. EDIT: Thanks solid!
manve1 Posted September 13, 2012 Posted September 13, 2012 function convertTime ( ms ) if ( ms and type ( ms ) == "number" ) then local mins = math.floor ( ms / 60000 ) local hours = math.floor ( mins / 60 ) local secs = math.floor ( ( ms / 1000 ) % 60 ) return string.format ( "%s:%s:%s", hours, ( mins - hours * 60 ), secs ) end end use this scratcher, this works. Looking for tutorials or information? check out: www.simpleask.co.uk
Castillo Posted September 13, 2012 Posted September 13, 2012 like it I have 59000 milliseconds it will show like 00:59:00.EDIT: Thanks solid! You're welcome. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
scratcher911 Posted September 13, 2012 Author Posted September 13, 2012 1 question more. What is the interior and position of bank witch uses it most of the servers?
manve1 Posted September 13, 2012 Posted September 13, 2012 most servers make their own. Looking for tutorials or information? check out: www.simpleask.co.uk
scratcher911 Posted September 13, 2012 Author Posted September 13, 2012 Nope. Anyway I mean like SAUR and CIT
Castillo Posted September 13, 2012 Posted September 13, 2012 X: 389.99 Y: 173.72 Z: 1008.38 Interior ID: 3 San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Castillo Posted September 13, 2012 Posted September 13, 2012 You're welcome. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
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