Hooking callbacks
#1

Hi there.

I've been looking at the tutorials for hooking callbacks. This is because I'm seperating my script out into includes, so obviously need to use the samp callbacks multiple times. I'm reading through these tutorials and I think I'm understanding certain parts, but when it comes to looking at the code, I'm baffled. It doesn't make sense to me, and doesn't appear to be explained very well. It may be to other people, but not to myself.

Can anyone give me the following example, as I think it will help me massively! Say I was going to hook OnPlayerConnect for my include file. Can someone explain step by step what I'd need to do, and explain the code line by line? I realise this may be a big ask, but if anyone is willing to, I'd appreciate it massively.

I've literally been looking up on this for hours and just can't get my head around it.

Many thanks
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)