YSI includes
#1

Hey. I've made two includes that use some of YSI includes. One of them has: y_ini and y_hooks. And other one has: y_hooks, y_commands and y_ini. And if I include in my gamemode my first include (that has y_ini and y_hooks) and after that include I include my other include, the gamemode won't compile.

Any solutions?
Reply
#2

Include the ysi in the gm before your includes
And dont include ysi in your include file
Reply
#3

What if I want to publish that includes? And I want to know why this happens.

And one more thing... When I include the second include, everything compiles fine.
Reply
#4

what errors where you getting?

because the includes should really only allow you to
include them once.

im not an expert at all(or even a good scripter yet) in pawn or samp
so i overlooked that part,

post your errors and hopefully someone can help.
Reply
#5

That's the problem. If there were some errors or warnings, I would probably solve them. But there aren't any errors or warnings, it just compiles and compiles... And it never finishes it.

And one more thing that I found out few seconds ago. If I remove y_commands from the second include, it compiles fine.
Reply
#6

yeah you might want to read more on the ysi
im not sure what your trying todo but sounds like you need to use y_master also.
sorry i dont have a more useful response

regards,
Reply
#7

Anyone?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)