break; or another way
#2

break; and continue; are supposed to be used in a loop statement. They are not used in this case, funnily enough it looks like your code should be working anyway? So why bother even adding break? You're calling the timer everytime it's not 0 already, so it's not going to keep getting called when it hits 0, but you're not using SetTimer when it's 0.
Reply


Messages In This Thread
break; or another way - by blackwave - 01.03.2011, 19:51
Re: break; or another way - by JaTochNietDan - 01.03.2011, 19:58
Re: break; or another way - by blackwave - 01.03.2011, 20:23
Re: break; or another way - by JaTochNietDan - 01.03.2011, 20:41

Forum Jump:


Users browsing this thread: 1 Guest(s)