29.06.2009, 09:47
Integers in PAWN start at 0 unless you set them
"a" will equal 0
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.
Код:
new a;
Код:
new a = 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); }