Iterator Help.. - 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: Iterator Help.. (
/showthread.php?tid=630368)
Iterator Help.. -
ManIsHere - 13.03.2017
hello, i have this:
Code:
new Iterator: Logs<MAX_LOGS>;
but still why do i get this error:
Code:
C:\Users\user\Desktop\FS.pwn(569) : error 017: undefined symbol "Logs"
Line 569 is:
Code:
if(!Iter_Count(Logs, id)) return 1;
please help..
Re: Iterator Help.. -
Dutheil - 13.03.2017
Iter_Count contains 1 parameter.
PHP Code:
if(!Iter_Count(Logs)) return 1;
But you probably want to use Iter_Contains :
PHP Code:
if(!Iter_Contains(Logs, id)) return 1;