Please help me. -
dfist - 21.12.2010
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
Re: Please help me. -
JaTochNietDan - 21.12.2010
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.
Re: Please help me. -
dfist - 21.12.2010
now i got 6 errors :/
Re: Please help me. -
blackwave - 21.12.2010
Post em' ?
Re: Please help me. -
dfist - 21.12.2010
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
Re: Please help me. -
blackwave - 21.12.2010
Also line 320
Re: Please help me. -
dfist - 21.12.2010
for (new i = 0; != MAX_PLAYERS; i++)
is the line 3208
Re: Please help me. -
blackwave - 21.12.2010
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();
Re: Please help me. -
dfist - 21.12.2010
where do i put that o.O ? it isn't the same as the 3208 line D:
Re: Please help me. -
JaTochNietDan - 21.12.2010
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++)