13.04.2017, 12:37
Hello,
I have a modular gamemode based on .inc files and I want to make a function like Dialog:dialogid(playerid, response, listitem, inputtext[]) to use it in every file without hooking OnDialogResponse everytime...
How can I do that function? I tried #define Dialog:%0(%1, %2, %3, %4) hook OnDialogResponse(%1, %0, %2, %3, %4) but is not working and gave my some errors.
I have a modular gamemode based on .inc files and I want to make a function like Dialog:dialogid(playerid, response, listitem, inputtext[]) to use it in every file without hooking OnDialogResponse everytime...
How can I do that function? I tried #define Dialog:%0(%1, %2, %3, %4) hook OnDialogResponse(%1, %0, %2, %3, %4) but is not working and gave my some errors.