29.06.2009, 09:38
Код:
for(new Game = 0; Game < 2; Game++)
cuz by the code its not repeating on 0, so i should change "Game" var to -1?
for(new Game = 0; Game < 2; Game++)
new a;
new a = 1;
for(new Game = 0; Game < 2; Game++) { printf("%d", Game); }
Originally Posted by ledzep
Integers in PAWN start at 0 unless you set them
Код:
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); } |