Loop Not Work
#1

I made a object loop for create 20 objects but with this command created one object.

Код:
new LoopTimer;
LoopTimer = SetTimerEx("LoopTunnel", 100, true, "");
Код:
forward LoopTunnel();
public LoopTunnel()
{
	for(new Objects; Objects < 20; Objects++)
	{
	  new Float:X = -38;
		CreateObject(13666, X, 2492, 30, 0, 0, 0);
		Objects++;
		X += 5;
		if(Objects == 20)
		{
		  KillTimer(LoopTimer);
		  break;
		}
		else continue;
	}
}
Who is the error.
Reply


Messages In This Thread
Loop Not Work - by _TeRmiNaToR_ - 08.09.2009, 11:32
Re: Loop Not Work - by snoob - 08.09.2009, 12:15
Re: Loop Not Work - by _TeRmiNaToR_ - 09.09.2009, 06:18
Re: Loop Not Work - by Joe Staff - 09.09.2009, 06:23
Re: Loop Not Work - by _TeRmiNaToR_ - 09.09.2009, 06:24

Forum Jump:


Users browsing this thread: 1 Guest(s)