[Tutorial] Detecting native SA-MP functions
#7

Quote:
Originally Posted by ******
Посмотреть сообщение
You're joking right? There isn't much documentation on it so a tutorial is useful, but this technique was developed years ago:

https://sampforum.blast.hk/showthread.php?tid=85907

Also, I would advise against modifying the original includes - you don't actually need the second native at all as your method will bypass other hooks despite detecting them. Just call "SetPlayerScore" in your custom function, not "CUSTOM_SetPlayerScore". It comes before the "#define" so won't get replaced.
Ah, well I only found this some time ago. Thanks for the feedback, I didn't really look into the hooks... Also, I'm not sure if I understood you correctly, but I'm using CUSTOM_SetPlayerScore, because later the original SetPlayerScore gets replaced by A_SetPlayerScore... Well, I'm probably wrong, but what can I do lol

EDIT: I read your post once more and now I understand. But when I tested with SetPlayerScore, the compiler crashed...
Reply


Messages In This Thread
Detecting native SA-MP functions - by KingHual - 08.02.2012, 13:19
Re: Detecting native SA-MP functions - by T0pAz - 08.02.2012, 13:30
Re: Detecting native SA-MP functions - by KingHual - 08.02.2012, 13:47
Re: Detecting native SA-MP functions - by Itachi_Avenger - 08.02.2012, 17:51
Re: Detecting native SA-MP functions - by KingHual - 08.02.2012, 17:53
Re: Detecting native SA-MP functions - by zgintasz - 10.02.2012, 13:04
Re: Detecting native SA-MP functions - by KingHual - 10.02.2012, 13:34
Re: Detecting native SA-MP functions - by T0pAz - 10.02.2012, 13:41
Re: Detecting native SA-MP functions - by KingHual - 11.02.2012, 21:45

Forum Jump:


Users browsing this thread: 1 Guest(s)