Posts: 117
Threads: 26
Joined: Jan 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"
Posts: 117
Threads: 26
Joined: Jan 2016
Posts: 117
Threads: 26
Joined: Jan 2016
But i did Interator: Logs<MAX_LOGS> as you can see in my given code....
Posts: 11,827
Threads: 33
Joined: Dec 2011
Reputation:
0
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?
Posts: 117
Threads: 26
Joined: Jan 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.