06.10.2011, 19:16
The for statement in basic terms is a loop. It has a initialisation, comparison and update.
The following will print 0, 1, 2, 3.
So pretty much, the players loop just loops through every single player. This is useful to find if a player has a certain variable that we want to find.
pawn Код:
for( new variable = 0; variable != 2; variable++)
/*Putting this into word terms. Firstly we define a new variable. If the variable does not equal to two then we add another loop to it. Everything in the for loop is called how large the comparison is. This will go through the loop 3 times (0, 1, 2).
pawn Код:
for( new variable; variable < 3; variable ++) printf("%d", variable);