[Help] Simple LITTLE question.
#5

The for statement in basic terms is a loop. It has a initialisation, comparison and update.

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).
The following will print 0, 1, 2, 3.

pawn Код:
for( new variable; variable < 3; variable ++) printf("%d", variable);
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.
Reply


Messages In This Thread
[Help] Simple LITTLE question. - by moadi - 06.10.2011, 17:50
Re: [Help] Simple LITTLE question. - by IstuntmanI - 06.10.2011, 18:24
Re: [Help] Simple LITTLE question. - by moadi - 06.10.2011, 18:28
Re: [Help] Simple LITTLE question. - by System64 - 06.10.2011, 18:52
Re: [Help] Simple LITTLE question. - by [HiC]TheKiller - 06.10.2011, 19:16
Re: [Help] Simple LITTLE question. - by Kingunit - 06.10.2011, 19:27
Re: [Help] Simple LITTLE question. - by spd_sahil - 06.10.2011, 19:41
Re: [Help] Simple LITTLE question. - by MoroDan - 06.10.2011, 19:55

Forum Jump:


Users browsing this thread: 1 Guest(s)