Get seconds and minutes.
#3

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)
Reply


Messages In This Thread
Get seconds and minutes. - by BlackRaven - 06.02.2013, 12:32
Re: Get seconds and minutes. - by RajatPawar - 06.02.2013, 12:41
Re: Get seconds and minutes. - by 3ventic - 06.02.2013, 12:44
Re: Get seconds and minutes. - by BlackRaven - 06.02.2013, 14:51
Re: Get seconds and minutes. - by Cameltoe - 06.02.2013, 14:54
Re: Get seconds and minutes. - by BlackRaven - 06.02.2013, 15:17
Re: Get seconds and minutes. - by ThePhenix - 06.02.2013, 15:38

Forum Jump:


Users browsing this thread: 1 Guest(s)