Jump to content

Question

Posted

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

  • 0
Posted

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
Posted
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!

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.