SA-MP Forums Archive
help | how to make hook callback ? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: help | how to make hook callback ? (/showthread.php?tid=552824)



help | how to make hook callback ? - _Application_ - 26.12.2014

how to make hook callback With ALS method?,

In the most effective!

With a detailed explanation in easy to understand that I want to learn it


sorry my bad english


Re: help | how to make hook callback ? - _Application_ - 27.12.2014

helpp??


Re: help | how to make hook callback ? - Evocator - 27.12.2014

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


Re: help | how to make hook callback ? - _Application_ - 27.12.2014

Quote:
Originally Posted by Ralfie
Посмотреть сообщение
PHP код:
public OnPlayerConnect(playerid)
{
/*
         Here all code ? 
*/
    #if defined MyLib_OnPlayerConnect
        
MyLib_OnPlayerConnect(playerid);
    
#endif
    
return 1;
}
#if defined _ALS_OnPlayerConnect
    #undef OnPlayerConnect
#else
    #define _ALS_OnPlayerConnect
#endif
#define OnPlayerConnect MyLib_OnPlayerConnect
#if defined MyLib_OnPlayerConnect
    
forward MyLib_OnPlayerConnect(playerid);
#endif