[Ajuda] Programaзгo Modular
#6

Quote:
Originally Posted by gelton
View Post
Ou poderб criar callback hook

Com a include y_hooks

Vocк poderar criar mуdulos com calbacks,


GAMEMODE
PHP Code:
#include <a_samp>
#include "modulo.inc"
public OnGameModeInit()
{
    
// normal
    
return 1;
}
public 
OnPlayerConnect(playerid

     
// normal
     
return 1

MODULO
PHP Code:
#include <YSI\y_hooks>
hook OnPlayerConnect(playerid

     
// alguma coisa separada
     
return 1

Eu uso este metodo.

Mas deixe dizer que aconselho a usar 1 hook manual em cada callback para que esta seja sempre a 1Є a ser chamada.
Reply


Messages In This Thread
Programaзгo Modular - by RafaelOsio - 11.04.2015, 20:13
Re: Programaзгo Modular - by arakuta - 11.04.2015, 20:21
Re: Programaзгo Modular - by D3sconn3ct - 11.04.2015, 20:27
Re: Programaзгo Modular - by Bruno13 - 11.04.2015, 20:29
Re: Programaзгo Modular - by ProKillerpa - 11.04.2015, 20:47
Re: Programaзгo Modular - by PT - 11.04.2015, 21:17
Re: Programaзгo Modular - by D3sconn3ct - 11.04.2015, 21:21
Re: Programaзгo Modular - by RafaelOsio - 11.04.2015, 21:47
Re: Programaзгo Modular - by D3sconn3ct - 11.04.2015, 21:52
Re: Programaзгo Modular - by RafaelOsio - 11.04.2015, 22:09

Forum Jump:


Users browsing this thread: 1 Guest(s)