• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] Hooks Problem
#1
Hi

I'm having a problem where a callback is not called in the modules (I'm using y_hooks). Using hooks with native callbacks this doesn't happen.



Code:
// GAMEMODE
forward OnPlayerChangeJob(playerid, pJob);
public OnPlayerChangeJob(playerid, pJob) {
}

OnPlayerChangeJob(playerid, pJob);

// MODULES
hook OnPlayerChangeJob(playerid, pJob) {
? ? SendClientMessage(playerid, -1, "CALLED!");
? ? return true;
}
  Reply


Messages In This Thread
Hooks Problem - by Kodokushi - 2021-03-08, 09:55 PM
RE: Hooks Problem - by Y_Less - 2021-03-08, 10:00 PM
RE: Hooks Problem - by Kodokushi - 2021-03-08, 10:12 PM

Forum Jump: