open.mp forum
[Server] Gamemode does not compile using YSI includes - Printable Version

+ open.mp forum (https://forum.open.mp)
-- Forum: SA-MP (https://forum.open.mp/forumdisplay.php?fid=3)
--- Forum: Support (https://forum.open.mp/forumdisplay.php?fid=12)
--- Thread: [Server] Gamemode does not compile using YSI includes (/showthread.php?tid=1616)



Gamemode does not compile using YSI includes - Frajola - 2021-01-29

Hello guys, I'm developing my gamemode in module, and recently I decided to implement YSI includes to use y_iterate and y_hooks.?



However when adding YSI includes, declare y_iterate and remove the foreach my gamemode does not compile, it doesn't display any errors, it just doesn't compile.



I'm just using the player loop in my scripts: "foreach (new i: Player)"



The only thing I did was install the latest version (5.4.102) of YSI includes, remove the include foreach declaration: "#include <foreach>", and declare the new one, which is y_iterate: "#include <YSI_Data \ y_iterate> ". only that.


RE: Gamemode does not compile using YSI includes - Markski - 2021-01-30

You must use the community compiler in order to use YSI5



https://github.com/pawn-lang/compiler/


RE: Gamemode does not compile using YSI includes - Frajola - 2021-01-31

(2021-01-30, 12:09 AM)Markski Wrote: You must use the community compiler in order to use YSI5



https://github.com/pawn-lang/compiler/





It worked, but it gave me several problems with const, but everything is already solved. thank you.


RE: Gamemode does not compile using YSI includes - Kwarde - 2021-02-13

(2021-01-31, 09:46 PM)Frajola Wrote: It worked, but it gave me several problems with const, but everything is already solved. thank you.

Actually, this was already there. The stock compiler however just never "realised" that (the community compiler does); https://github.com/pawn-lang/compiler/wiki/Const-Correctness