Hooking callbacks
#9

IIRC each time you hook a callback you MUST use a unique prefix for the callback header.

I'm thinking you have hooked OnPlayerConnect more than once but defined 'L_OnPlayerConnect' each time. Change the 'L_' to something meaningful. For example, in your user.pwn change it to 'user_OnPlayerConnect'.

Also remember, it's better to use small prefixes because you will exceed the callback header length limit (on callbacks like 'OnPlayerDialogResponse') with larger prefixes.
Reply


Messages In This Thread
Hooking callbacks - by Jonesy96 - 01.06.2016, 23:34
Re: Hooking callbacks - by OmegaKiller72 - 01.06.2016, 23:53
Re: Hooking callbacks - by OmegaKiller72 - 01.06.2016, 23:56
Re: Hooking callbacks - by Jonesy96 - 02.06.2016, 00:00
Re: Hooking callbacks - by OmegaKiller72 - 02.06.2016, 00:15
Re: Hooking callbacks - by Abagail - 02.06.2016, 00:16
Re: Hooking callbacks - by Jonesy96 - 02.06.2016, 00:35
Re: Hooking callbacks - by Sew_Sumi - 02.06.2016, 01:59
Re: Hooking callbacks - by iggy1 - 02.06.2016, 02:14
Re: Hooking callbacks - by Jonesy96 - 02.06.2016, 13:35

Forum Jump:


Users browsing this thread: 1 Guest(s)