static Iterator error 008
#1

Well.

Code:
PHP код:
static Iterator:Zones<MAX_GZONES>, Iterator:Gangs<MAX_GANGS>;
static 
ZInfo[MAX_GZONES][Zone_Data]; 
Errors:

PHP код:
Compiling...
C:\Users\Yassine\Desktop\VCLAND\x.pwn(68) : error 008must be a constant expressionassumed zero
C
:\Users\Yassine\Desktop\VCLAND\x.pwn(69) : error 008must be a constant expressionassumed zero
D
:\pawn-editor\include\VCData\Features\ChatManager.pwn(49) : error 017undefined symbol "GInfo"
D:\pawn-editor\include\VCData\Features\ChatManager.pwn(49) : warning 215expression has no effect
D
:\pawn-editor\include\VCData\Features\ChatManager.pwn(49) : error 001expected token";"but found "]"
D:\pawn-editor\include\VCData\Features\ChatManager.pwn(49) : error 029invalid expressionassumed zero
D
:\pawn-editor\include\VCData\Features\ChatManager.pwn(49) : fatal error 107too many error messages on one line
LVP Pawn Pre
-compiler 
Dafuq ? o.O
Reply
#2

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?
Reply
#3

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
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?
Thank you for reponse !

but it's now fixed !

i was missing this :

PHP код:
new MAX_GZONES 50
by change it to :

PHP код:
#define MAX_GZONES  50 
it's fixed !
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)