Multidimensional iterators [y_iterate] - 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: Multidimensional iterators [y_iterate] (
/showthread.php?tid=641703)
Multidimensional iterators [y_iterate] -
iSpark - 19.09.2017
I'm getting this error.
Код:
warning 203: symbol is never used: "Iter_Init@PlayerDuffID"
So I searched a bit and I found that MD iterators need to be initialized with Iter_Init. However whenever I do add in "Iter_Init" I get this.
Код:
E:\Rockstar Games\dufflebag\gamemodes\/inc/core.inc(104) : warning 219: local variable "Iterator@PlayerDuffID" shadows a variable at a preceding level
E:\Rockstar Games\dufflebag\gamemodes\/inc/core.inc(104) : error 025: function heading differs from prototype
E:\Rockstar Games\dufflebag\gamemodes\/inc/core.inc(104) : error 021: symbol already defined: "Iter_Init_Internal"
E:\Rockstar Games\dufflebag\gamemodes\/inc/core.inc(104) : warning 221: label name "_" shadows tag name
E:\Rockstar Games\dufflebag\gamemodes\/inc/core.inc(104) : warning 203: symbol is never used: "_"
E:\Rockstar Games\dufflebag\gamemodes\/inc/core.inc(104) : warning 203: symbol is never used: "Iterator@PlayerDuffID"
E:\Rockstar Games\dufflebag\gamemodes\/inc/core.inc(104) : error 020: invalid symbol name "F@e"
E:\Rockstar Games\dufflebag\gamemodes\/inc/core.inc(104) : fatal error 107: too many error messages on one line
The line itself
Код:
static Iterator:PlayerDuffID[MAX_PLAYERS]<1>;
Iter_Init(PlayerDuffID);
Any help would be appreciated.
e#
Nevermind. Fixed the issue.