Burgershot
  • Home
  • Members
  • Team
  • Help
  • Search
  • Register
  • Login
  • Home
  • Members
  • Help
  • Search
Burgershot SA-MP Support [Server] Gamemode does not compile using YSI includes

 
  • 0 Vote(s) - 0 Average
Server Gamemode does not compile using YSI includes
Frajola
Offline

Burgershot Member
Posts: 12
Threads: 6
Joined: Apr 2019
Reputation: 0
Location: Rio de Janeiro
#1
2021-01-29, 11:18 PM
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.
Markski
Offline

Burgershot Clerk

Posts: 127
Threads: 6
Joined: Apr 2019
Reputation: 5
Location: La Plata, Argentina
#2
2021-01-30, 12:09 AM
You must use the community compiler in order to use YSI5

https://github.com/pawn-lang/compiler/
Website
Frajola
Offline

Burgershot Member
Posts: 12
Threads: 6
Joined: Apr 2019
Reputation: 0
Location: Rio de Janeiro
#3
2021-01-31, 09:46 PM
(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.
Kwarde
Offline

Burgershot Member
Posts: 99
Threads: 2
Joined: Sep 2020
Reputation: 8
Location: The Netherlands
#4
2021-02-13, 05:24 PM
(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
« Next Oldest | Next Newest »



  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Burgershot - Powered by our Community and MyBB Original Theme by Emerald

Linear Mode
Threaded Mode