You're saving everything with the same key. I doubt that will work at all.
Code:
for(new i, a; i < UpgradeInfo; i++)
{
for(a ; a < Teams; a++)
Using this will also not work. "a" is created outside of the scope of the second for-loop. Because you're never setting it to 0 again the second for-loop will not run more than once.
Here's an example to show you more clearly:
Code:
for ( new i, j ; i < 3 ; i++ ) {
server_print("i: %d", i);
for ( ; j < 3 ; j++ ) {
server_print("j: %d", j);
}
}
Code:
i: 0
j: 0
j: 1
j: 2
i: 1
i: 2
As you can see, the j loop runs only once, because it's never reset meaning the statement "j < 3" will return false.
And why you are getting that expression has no effect:
Code:
for ( a ; a < Teams ; a++ ) {
// Your code
}
You can translate this to something like this:
Code:
a
while ( a < Teams ) {
// Your code
a++;
}
And of course, that a looks lonely there. Assuming you would not need to reset the variable a, you could've used something like this:
Code:
for ( ; a < Teams ; a++ ) {
// Your code
}
But that is not the case, so it's irrelevant.
I'm assuming you stripped a lot of code before you posted.
__________________