06.07.2016, 15:38
I have a problem hooking custom functions, native callbacks hook perfectly without problems. I have the latest YSI version and I can't figure out why I can't hook functions.
This is the code:
This is kind of urgent, since I can't find another way to hook functions in my modular gamemode. Thanks
This is the code:
pawn Код:
#include YSI_Coding\y_hooks
public OnFilterScriptInit()
{
Function();
print("\n--Base FS loaded.\n");
return 1;
}
forward Function();
public Function()
{
print("public");
}
hook Function()
{
print("Hook");
}
// Prints just "public"