help with include create - 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 with include create (
/showthread.php?tid=486687)
help with include create -
kamilot73 - 09.01.2014
Hi) I want to convert some FS to include file, but I have some problems with it: I have dialog-response, how i can put it in OnDialogResponse from include? Sorry for bad english.
Re: help with include create -
amirab - 10.01.2014
can you explain more
please what do you want to do
Re: help with include create -
Aliassassin123456 - 10.01.2014
Quote:
Originally Posted by amirab
you can't put callbacks too includes
|
Amirab, Are you sure you can't put callbacks in includes?
Don't be n00b

you need help and you help others? LOL
To put callbacks in include you can use y_hooks or this method:
pawn Код:
public X_OnGameModeInit()
{
//....
}
#if defined X_OnGameModeInit
forward X_OnGameModeInit();
#endif
#if defined _ALS_OnGameModeInit
#undef OnGameModeInit
#else
#define _ALS_OnGameModeInit
#endif
#define OnGameModeInit X_OnGameModeInit
or other methods like CallLocalFunction
Re: help with include create -
amirab - 10.01.2014
Quote:
Originally Posted by Aliassassin123456
Amirab, Are you sure you can't put callbacks in includes?
Don't be n00b  you need help and you help others? LOL
|
No Sir maybe you did't understant what am i saying

i said you can't but i mean you can't out OnDialogResponse in inclue and in gamemode ,too
Sorry if i said wrong