-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I get error 021 using y_hooks #693
Comments
My temporary solution has been this...
#include <a_samp>
#include "Modules/Codes.pwn"
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) {
OnDialogResponse_Users(playerid, dialogid, response, listitem, inputtext);
OnDialogResponse_Worlds(playerid, dialogid, response, listitem, inputtext);
return true;
}
main() {
return true;
}
#include "Modules/Users/Code.pwn"
#include "Modules/Worlds/Code.pwn"
OnDialogResponse_Users(playerid, dialogid, response, listitem, inputtext[]) {
return true;
}
OnDialogResponse_Worlds(playerid, dialogid, response, listitem, inputtext[]) {
return true;
} But it's clearly a temporary solution, I'm still not sure if I'm using y_hooks incorrectly or just what I'm trying to do can't be done. |
Which YSI version are you using? |
I use the latest version available, v5.10.0006 |
I tried on latest version of openmp and it was ok. |
Well, my server is from SAMP, would that be the problem? It would be perfect if this could be resolved for SAMP or if there was some alternative. |
change #include <YSI_Coding/y_hooks> to #include <YSI_Coding\y_hooks> |
I am developing a modular code that requires quite a few files, I wanted to simplify things further by using y_hooks since after reading the documentation I knew that was what I needed.
However I'm getting these errors, I've searched for information on some forums and in the y_hooks documentation, I've tried everything I can but this is the first time I've developed modular code of this style and used y_hooks on this scale, so I really don't know what I'm doing wrong.
I preferred to share this code where I replicate the problem so as not to extend myself so much talking.
gamemodes/GM.pwn
(Main file)gamemodes/Modules/Codes.pwn
gamemodes/Modules/Users/Code.pwn
gamemodes/Modules/Worlds/Code.pwn
Code.pwn
files.Codes.pwn
.Codes.pwn
and in allCode.pwn
files (at the end and at the beginning of the files)Codes.pwn
(at the end and at the beginning of the file).I think I also tried other ways of including y_hooks but it took me a few hours until I gave up and decided to turn to you guys... I hope you can help me solve the problem and I will appreciate if I can figure this out and learn more about y_hooks.
The text was updated successfully, but these errors were encountered: