For loops work like this:
Code:
for(initation code; loop condition; iteration code) {
statements
}
The initation code is executed once when the loop beings. It is generally used to setup a variable to be used in the loop (ie: new i = 1).
The loop continues to execute the statements over and over again until the loop condition is met. This is usually a simple number counter (ie: i <= get_maxplayers()).
At the end of every iteration, the iteration code is run. Once again, this is generally used to increment the variable you are using to count (ie: i++).
Compare your first for loop with your second for loop, just the very beginning line that defines the loop. You will see the problem eventually.
Code:
for( i = 1; i < get_maxplayers(); i++ )
for( i2 = 1; i2 <get_maxplayers(); i++ )
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS