Razvan Nique Posted August 13, 2018 Posted August 13, 2018 Salut, doresc sa fac un gamemode pe include-uri dar nu pot folosi y_hooks la 2 callback-uri (in includeuri diferite) Exemplu: gamemode.pwn: #include <primuinc> #include <aldoileainc> primuinc.inc: hook OnGameModeInit() { print("primu inc"); return 1; } aldoileainc.inc: hook OnGameModeInit() { print("al doilea inc"); return 1; } Eroare: error 021: symbol already defined: "@yH_OnGameModeInit@006"
0 Razvan Nique Posted August 14, 2018 Author Posted August 14, 2018 Acum 19 ore, Banditul a spus: Si unde ai inclus y_hooks? In gamemode.pwn.
0 Banditul Posted August 14, 2018 Posted August 14, 2018 O solutie e sa redenumesti al doilea hook hook d_OnGameModeInit() { print("al doilea inc"); } A doua solutie e sa introduci y_hooks in fiecare include( nu stiu sigur daca va produce vreun conflict)
0 Razvan Nique Posted August 14, 2018 Author Posted August 14, 2018 Acum 4 ore, Banditul a spus: O solutie e sa redenumesti al doilea hook hook d_OnGameModeInit() { print("al doilea inc"); } A doua solutie e sa introduci y_hooks in fiecare include( nu stiu sigur daca va produce vreun conflict) Mersi foarte mult, au mers ambele!
Question
Razvan Nique
Salut, doresc sa fac un gamemode pe include-uri dar nu pot folosi y_hooks la 2 callback-uri (in includeuri diferite)
Exemplu:
gamemode.pwn:
#include <primuinc>
#include <aldoileainc>
primuinc.inc:
hook OnGameModeInit() {
print("primu inc");
return 1;
}
aldoileainc.inc:
hook OnGameModeInit() {
print("al doilea inc");
return 1;
}
Eroare: error 021: symbol already defined: "@yH_OnGameModeInit@006"
5 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now