SA-MP Forums Archive
y_iterate hanging my compiler after latest YSI updates (Misiur) - 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: y_iterate hanging my compiler after latest YSI updates (Misiur) (/showthread.php?tid=642615)



y_iterate hanging my compiler after latest YSI updates (Misiur) - Battlezone - 03.10.2017

This problem has started to occur for me since the last few YSI updates and I was obliged to switch to southclaw YSI 4.0 in order to fix this problem.
Here is a list of my includes:
Код:
#include <a_samp>
#include <crashdetect> //
#include <YSI\y_bit>
#include <YSI\y_hooks>
#include <YSI\y_ini>
#include <streamer>
#include <sscanf2> //
#include <zcmd> //
#include <a_mysql>
#include <YSI\y_iterate>
#define ENABLE_3D_TRYG_YSI_SUPPORT
#include <3DTryg>
Tried changing y_iterate order, still the same problem


Re: y_iterate hanging my compiler after latest YSI updates (Misiur) - Misiur - 03.10.2017

Hi! Are you using the stock compiler, Zeex's compiler or russian compiler? Can you try compiling empty gamemode just with those includes?


Re: y_iterate hanging my compiler after latest YSI updates (Misiur) - Battlezone - 03.10.2017

I'm using the stock compiler
Emptying the gamemode compiled it normally for me


Re: y_iterate hanging my compiler after latest YSI updates (Misiur) - Misiur - 03.10.2017

Alright, can you try and comment out stuff and then uncomment little be little until you either get errors or it crashes again? It might crash due to more than X errors (don't remember what the X number was tho), and there were indeed some changes to y_iterate in the meantime.


Re: y_iterate hanging my compiler after latest YSI updates (Misiur) - Battlezone - 03.10.2017

Will do, might take while as it is a very big gm


Re: y_iterate hanging my compiler after latest YSI updates (Misiur) - Battlezone - 03.10.2017

Quote:
Originally Posted by ******
Посмотреть сообщение
I might know what the problem is...
Iter_Contains?

Yeah, it turned out that there is no such function in the include
Now the gamemode compiles correctly
But if so, what is its alternative in y_iterate?


Re: y_iterate hanging my compiler after latest YSI updates (Misiur) - Battlezone - 03.10.2017

Sorry but I did not make any backup of the freezing version. I've replaced Iter_Contains with custom functions that loop through iterators and break to check if they contain an item.
There was nothing else than a bunch of Iter_Contains inside it that caused the compiler hangup
EDIT: I don't think this would help but I used both normal and 2D iterators with Iter_Contains