Iters, at new foreach. - 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: Iters, at new foreach. (
/showthread.php?tid=402829)
Iters, at new foreach. -
Edvin - 28.12.2012
Hi guys
When i updated the foreach include to latest version, I saw this prints, when a player connect to the server:
Код:
[23:53:53] Iter_OnPlayerConnect: 15
[23:53:53] Iter_OnPlayerConnect end
Is there a problem? Or some debug mode in the foreach include... ?
Thanks.
Re: Iters, at new foreach. -
Grim_ - 28.12.2012
Seems to be debug messages, which aren't intended to be printed:
Quote:
Notes:
Adds a player to the loop data. Now sorts the list too. Note that I found
the most bizzare bug ever (I *think* it may be a compiler but, but it
requires further investigation), basically it seems that multiple variables
were being treated as the same variable (namely @YSII_EgotS and
@YSII_CgharacterS were the same and @YSII_EgotC and @YSII_CgharacterC were the
same). Adding print statements which reference these variables seem to fix
the problem, and I've tried to make sure that the values will never actually
get printed.
|
That's funny, as my brother had the same problem with variables getting accessed incorrectly unless there was a print statement called prior to the usage.
Re: Iters, at new foreach. -
Edvin - 28.12.2012
Ok, that's all. I just want to see if is a bug in my code, or something ... Thanks.