Loop Errors - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Loop Errors (
/showthread.php?tid=198435)
Loop Errors -
Th3Angel - 12.12.2010
pawn Code:
C:\Users\Mary Chung\Desktop\SAMP Server\gamemodes\Zombie_Outbreak21.pwn(1654) : warning 219: local variable "x" shadows a variable at a preceding level
C:\Users\Mary Chung\Desktop\SAMP Server\gamemodes\Zombie_Outbreak21.pwn(1658) : error 022: must be lvalue (non-constant)
C:\Users\Mary Chung\Desktop\SAMP Server\gamemodes\Zombie_Outbreak21.pwn(1658) : warning 205: redundant code: constant expression is zero
C:\Users\Mary Chung\Desktop\SAMP Server\gamemodes\Zombie_Outbreak21.pwn(1658) : warning 213: tag mismatch
C:\Users\Mary Chung\Desktop\SAMP Server\gamemodes\Zombie_Outbreak21.pwn(1658) : warning 215: expression has no effect
C:\Users\Mary Chung\Desktop\SAMP Server\gamemodes\Zombie_Outbreak21.pwn(1658) : error 001: expected token: ")", but found ";"
C:\Users\Mary Chung\Desktop\SAMP Server\gamemodes\Zombie_Outbreak21.pwn(1658) : error 036: empty statement
C:\Users\Mary Chung\Desktop\SAMP Server\gamemodes\Zombie_Outbreak21.pwn(1658) : fatal error 107: too many error messages on one line
pawn Code:
1654: new x;
1658: for(x=0;x<MAX_PLAYERS;x++)
I've been staring at this, but I don't see anything wrong.
I also undefined MAX_PLAYERS and redefined it if thats helps anyhow.
pawn Code:
#undef MAX_PLAYERS
#define MAX_PLAYERS 200
Re: Loop Errors -
cessil - 12.12.2010
change x to something else like xx