y_hooks problem
#1

So, I am trying to hook OnGameModeInit the second time through y_hooks method (simpy hook OnGameModeInit() ) and thats the error I get:

Код:
error 021: symbol already defined: "@yH_GameModeInit3"
What am I doing wrong?
Reply
#2

Works fine for me:

pawn Код:
#include    a_samp
#include    ysi\y_hooks
main(){}

public OnGameModeInit()
{
    AddPlayerClass(0,132.6651,-67.3368,1.5781,237.7988,0,0,0,0,0,0);
    return 1;
}
hook OnGameModeInit()
{
    return 1;
}
public OnGameModeExit()
{
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)