question | loop
#3

Quote:
Originally Posted by ledzep
Integers in PAWN start at 0 unless you set them

Код:
new a;
"a" will equal 0

Код:
new a = 1;
obviously, "a" will equal 1

That being said, your loop will start at 0, even if you didn't initialize "Game" to 0

Your loop will start at 0, and stop 1.
You could test it on your own by printing "Game" each loop.

Код:
for(new Game = 0; Game < 2; Game++)
{
	printf("%d", Game);
}
oh, i didn't thought about trying the loop with "print", tnx.
Reply


Messages In This Thread
question | loop - by RonLipel_ - 29.06.2009, 09:38
Re: question | loop - by ledzep - 29.06.2009, 09:47
Re: question | loop - by RonLipel_ - 29.06.2009, 10:19

Forum Jump:


Users browsing this thread: 3 Guest(s)