Minor Query Problem - 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: Minor Query Problem (
/showthread.php?tid=610063)
Minor Query Problem -
ManIsHere - 19.06.2016
Hello, i am having a Minor Query Error idk why..
This is the line:
PHP код:
if(!Iter_Count(Logs, id)) return 1;
i added to top of script:
PHP код:
new Iterator: Logs<MAX_LOGS>;
any guess why there is error?
PHP код:
(548) : error 017: undefined symbol "Logs"
Re: Minor Query Problem -
ManIsHere - 20.06.2016
Bump
Re: Minor Query Problem -
F1N4L - 20.06.2016
Logs not declared
Re: Minor Query Problem -
ManIsHere - 20.06.2016
But i did Interator: Logs<MAX_LOGS> as you can see in my given code....
Re: Minor Query Problem -
Konstantinos - 20.06.2016
YSI library does not use common naming, that means that declaring an iterator called "Logs", it actually declares them as "Logs@YSII_Cg", "Logs@YSII_Ag" and "Iter_Single@Logs", "Iterator@Logs" for YSI 3.1 and YSI 4 respectively.
Iter_Count also has 1 parameter and that is the name of the iterator. You have used a second parameter so I assume you wanted to use Iter_Contains instead?
Re: Minor Query Problem -
ManIsHere - 21.06.2016
i understand what chu mean.. no i wanted how much Logs are saved in the interator. it was for Loading wodden Log Objects. so if there are no Logs saved, then it will return 1 the LogsLoading function.