Jump to content

[HELP] Please


1LoL1

Recommended Posts

Please anyone can help me with this code?

function formatTimeFromMinutes(value) 
  if value then 
    local hours = math.floor(value / 60) 
    local minutes = math.round((value / 60 - math.floor(value / 60)) * 100 / 1.6666666666666667) 
    if minutes < 10 then 
      minutes = "0" .. minutes 
    end 
    value = hours .. ":" .. minutes 
    return value 
  end 
  return false 
end 

Now Alive Time is 0:00

What i must add when i want to add seconds and this: 00:00:00

Link to comment

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...