Please help me.
#1

I get these errors when i compile, but i dont get it whats wrong. I just need help with these errors:

E:\Gta san\Right one the one i use\Server 2 (i maby use this\0.3c server 2\gamemodes\sagc.pwn(1623) : warning 219: local variable "i" shadows a variable at a preceding level
E:\Gta san\Right one the one i use\Server 2 (i maby use this\0.3c server 2\gamemodes\sagc.pwn(1623) : error 029: invalid expression, assumed zero
E:\Gta san\Right one the one i use\Server 2 (i maby use this\0.3c server 2\gamemodes\sagc.pwn(1623) : error 036: empty statement
E:\Gta san\Right one the one i use\Server 2 (i maby use this\0.3c server 2\gamemodes\sagc.pwn(1623) : error 017: undefined symbol "i"
E:\Gta san\Right one the one i use\Server 2 (i maby use this\0.3c server 2\gamemodes\sagc.pwn(1623) : fatal error 107: too many error messages on one line


And the script line is this:

RaceActive=0;
Ranking=1;
LCurrentCheckpoint=0;
Participants=0;
1623 for(new i;<MAX_BUILDERS); i++)
{
BuilderSlots[i]=MAX_PLAYERS+1;
}
if(RRotation != -1) SetTimer("RaceRotation",RRotationDelay,1);
CreateRaceMenus();

So whats wrong with this ?

for(new i;<MAX_BUILDERS); i++)

Id appreciate your help
Reply
#2

There is an error in your syntax, you have a random bracket in there which is ending the for loop statement too soon.

pawn Код:
for(new i; i < MAX_BUILDERS; i++)
You were also missing a valid check for the loop.
Reply
#3

now i got 6 errors :/
Reply
#4

Post em' ?
Reply
#5

E:\Gta san\Right one the one i use\Server 2 (i maby use this\0.3c server 2\gamemodes\sagc.pwn(1614) : warning 219: local variable "i" shadows a variable at a preceding level
E:\Gta san\Right one the one i use\Server 2 (i maby use this\0.3c server 2\gamemodes\sagc.pwn(1623) : warning 219: local variable "i" shadows a variable at a preceding level
E:\Gta san\Right one the one i use\Server 2 (i maby use this\0.3c server 2\gamemodes\sagc.pwn(215 : warning 219: local variable "i" shadows a variable at a preceding level
E:\Gta san\Right one the one i use\Server 2 (i maby use this\0.3c server 2\gamemodes\sagc.pwn(2171) : error 001: expected token: "-identifier-", but found "="
E:\Gta san\Right one the one i use\Server 2 (i maby use this\0.3c server 2\gamemodes\sagc.pwn(2172) : warning 219: local variable "i" shadows a variable at a preceding level
E:\Gta san\Right one the one i use\Server 2 (i maby use this\0.3c server 2\gamemodes\sagc.pwn(2172) : error 029: invalid expression, assumed zero
E:\Gta san\Right one the one i use\Server 2 (i maby use this\0.3c server 2\gamemodes\sagc.pwn(2953) : warning 219: local variable "i" shadows a variable at a preceding level
E:\Gta san\Right one the one i use\Server 2 (i maby use this\0.3c server 2\gamemodes\sagc.pwn(2966) : warning 219: local variable "i" shadows a variable at a preceding level
E:\Gta san\Right one the one i use\Server 2 (i maby use this\0.3c server 2\gamemodes\sagc.pwn(320 : warning 219: local variable "i" shadows a variable at a preceding level
E:\Gta san\Right one the one i use\Server 2 (i maby use this\0.3c server 2\gamemodes\sagc.pwn(320 : error 029: invalid expression, assumed zero
E:\Gta san\Right one the one i use\Server 2 (i maby use this\0.3c server 2\gamemodes\sagc.pwn(320 : warning 215: expression has no effect
E:\Gta san\Right one the one i use\Server 2 (i maby use this\0.3c server 2\gamemodes\sagc.pwn(320 : error 001: expected token: ")", but found ";"
E:\Gta san\Right one the one i use\Server 2 (i maby use this\0.3c server 2\gamemodes\sagc.pwn(320 : error 036: empty statement
E:\Gta san\Right one the one i use\Server 2 (i maby use this\0.3c server 2\gamemodes\sagc.pwn(320 : fatal error 107: too many error messages on one line
Reply
#6

Also line 320
Reply
#7

for (new i = 0; != MAX_PLAYERS; i++)

is the line 3208
Reply
#8

pawn Код:
RaceActive=0;
Ranking=1;
LCurrentCheckpoint=0;
Participants=0;
for(new i = 0; i < MAX_BUILDERS; i++)
{
BuilderSlots[i]=MAX_PLAYERS+1;
}
if(RRotation != -1) SetTimer("RaceRotation",RRotationDelay,1);
CreateRaceMenus();
Reply
#9

where do i put that o.O ? it isn't the same as the 3208 line D:
Reply
#10

Again here you have an error in your syntax.

pawn Код:
for (new i = 0; != MAX_PLAYERS; i++)
I don't really know what you're trying to achieve here, but this type of loop is usually using this check:

pawn Код:
for (new i = 0; i < MAX_PLAYERS; i++)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)