Posts: 201
Threads: 19
Joined: Jan 2011
Reputation:
0
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.
Posts: 498
Threads: 24
Joined: Apr 2013
can you explain more
please what do you want to do
Posts: 232
Threads: 4
Joined: Apr 2013
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
Posts: 498
Threads: 24
Joined: Apr 2013
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