Posts: 71
Threads: 19
Joined: Jul 2012
Reputation:
0
Hello all Im needing of some help, i need to get the seconds and minutes from a timer, how can i do it?
Posts: 2,187
Threads: 81
Joined: Aug 2011
Reputation:
0
You need to get seconds and minutes from a timer? How is that possible, you set the timer, so how is the question of getting it, coming from? Please explain your thing properly!
Posts: 318
Threads: 2
Joined: Jun 2009
Reputation:
0
Set a repeatedly running timer for 1 second and increment a value every time it runs (count seconds) and have a function to convert the seconds into minutes & seconds.
minutes = floor(seconds/60)
seconds -= 60*minutes
(I don't know pawn but that's the idea)
Posts: 71
Threads: 19
Joined: Jul 2012
Reputation:
0
I want to convert this this time in milliseconds 113000 to minutes and seconds.
Posts: 1,741
Threads: 44
Joined: Apr 2010
Reputation:
0
113000 / 1000 ( MS to seconds ) = 113 / 60 ( Seconds to minutes ) = 1,83 minutes.
Posts: 71
Threads: 19
Joined: Jul 2012
Reputation:
0
Thanks Cameltoe it worked rep++;