static Iterator:Zones<MAX_GZONES>, Iterator:Gangs<MAX_GANGS>;
static ZInfo[MAX_GZONES][Zone_Data];
Compiling...
C:\Users\Yassine\Desktop\VCLAND\x.pwn(68) : error 008: must be a constant expression; assumed zero
C:\Users\Yassine\Desktop\VCLAND\x.pwn(69) : error 008: must be a constant expression; assumed zero
D:\pawn-editor\include\VCData\Features\ChatManager.pwn(49) : error 017: undefined symbol "GInfo"
D:\pawn-editor\include\VCData\Features\ChatManager.pwn(49) : warning 215: expression has no effect
D:\pawn-editor\include\VCData\Features\ChatManager.pwn(49) : error 001: expected token: ";", but found "]"
D:\pawn-editor\include\VCData\Features\ChatManager.pwn(49) : error 029: invalid expression, assumed zero
D:\pawn-editor\include\VCData\Features\ChatManager.pwn(49) : fatal error 107: too many error messages on one line
LVP Pawn Pre-compiler
The problem is not related to the iterators, they are just arrays anyway. The problem is that it expected a constant value and both lines use MAX_GZONES. How is that defined?
|
new MAX_GZONES = 50;
#define MAX_GZONES 50