Cant find my error

Write your question here.

I've been looking over my code a 100 times i cant figure out why my output isn't in correlation with my input.



Help is well appreciated !



[/code]

As you can see at song number 6 and 7 the 55 secs turns into 0 somehow. which also makes the minutes and seconds left on the song off as well.

http://i.imgbox.com/abiYtjFU.jpg
Last edited on
I think your mistake is in calculating totalseconds . I can see that totalminutes is cumulative, but totalseconds is not. It just equals whatever timeseconds is.

And you should also include an if-statement or something to check for the condition when totalseconds goes up to 60 or more.
OMFG THX I JUS GOT THE VARIABLES MIXED UP HAHA
code works flawlessly now thanks man .
Topic archived. No new replies allowed.