break and return
#5

ofcourse.
I want to break loop because it would totally run to 1000 and if player got things in 500 then i would not run loop for nothing if you know what i mean.
pawn Код:
for(new h = 0; h < 1000; h++)
{
     if(h == 500)
     {
         he got things...
         // i dont want to loop another 500 so - break and i dont want to create next loop for nothing - return somehow.
     }
}
for(next loop to about 200)
{ ....
Reply


Messages In This Thread
break and return - by GaGlets(R) - 27.12.2010, 04:16
Re: break and return - by 1337connor - 27.12.2010, 04:21
Re: break and return - by GaGlets(R) - 27.12.2010, 04:25
Re: break and return - by randomkid88 - 27.12.2010, 04:32
Re: break and return - by GaGlets(R) - 27.12.2010, 04:37
Re: break and return - by randomkid88 - 27.12.2010, 04:42
Re: break and return - by GaGlets(R) - 27.12.2010, 11:48
Re: break and return - by FUNExtreme - 27.12.2010, 11:54
Re: break and return - by GaGlets(R) - 27.12.2010, 12:03
Re: break and return - by iggy1 - 27.12.2010, 12:06

Forum Jump:


Users browsing this thread: 1 Guest(s)