SA-MP Forums Archive
static Iterator error 008 - 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)
+--- Thread: static Iterator error 008 (/showthread.php?tid=625016)



static Iterator error 008 - Yaa - 26.12.2016

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


Re: static Iterator error 008 - Konstantinos - 26.12.2016

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?


Re: static Iterator error 008 - Yaa - 26.12.2016

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 !