How to make an include?
#4

Quote:
Originally Posted by Calinut200
View Post
How to make that? I'm new in this include
Take a look here:
https://sampforum.blast.hk/showthread.php?tid=574534

Here's a simple example of a callback hook:

PHP Code:
public OnPlayerConnect(playerid)
{
    
#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 
Reply


Messages In This Thread
How to make an include? - by Calinut200 - 01.04.2020, 19:42
Re: How to make an include? - by DRIFT_HUNTER - 01.04.2020, 19:56
Re: How to make an include? - by Calinut200 - 01.04.2020, 19:59
Re: How to make an include? - by rzrusu - 01.04.2020, 20:12

Forum Jump:


Users browsing this thread: 1 Guest(s)