Count Down fix?
#6

floatround will round a value(for example: timer is on 280 seconds, it will do this 280/60=4.67, this function will round 4.67 to 4(closest integet lower than 4.67). That means there are 4 minutes in 280 seconds.)
while function - will repeat "seconds = seconds - 60" until it gets to lower than 60(lower than 1 minute) and it will show exact number of seconds in that minute.
Use this for seconds and minutes:
Code:
format(string, 128, "Minutes: %d  Seconds: %d", mins, seconds);
Add my code under CountDownTimer public.
Reply


Messages In This Thread
Count Down fix? - by Fantje - 09.10.2015, 16:10
Re: Count Down fix? - by thefirestate - 09.10.2015, 16:24
Re: Count Down fix? - by Balcan Fox - 09.10.2015, 16:24
Re: Count Down fix? - by Fantje - 09.10.2015, 16:26
Re: Count Down fix? - by Vince - 09.10.2015, 16:31
Re: Count Down fix? - by Balcan Fox - 09.10.2015, 16:35
Re: Count Down fix? - by Vince - 09.10.2015, 16:51
Re: Count Down fix? - by AbyssMorgan - 09.10.2015, 16:53
Re: Count Down fix? - by Balcan Fox - 09.10.2015, 17:05

Forum Jump:


Users browsing this thread: 1 Guest(s)