Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function display(nSeconds)
- local minutes = math.floor(nSeconds / 60)
- local seconds = nSeconds % 60
- -- now we got the amount of minutes and seconds, display them below yourself!
- -- Im just doing a simple print
- print(string.format("%02d:%02d", minutes, seconds))
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement