Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define Dialog(%1) \
- forward DIALOG_%1(playerid,response,listitem,inputtext[]);\
- public DIALOG_%1(playerid,response,listitem,inputtext[])
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- new DialogStr[24];
- format(DialogStr,24,"DIALOG_%d",dialogid);
- if(funcidx(DialogStr) != -1)
- {
- CallLocalFunction(DialogStr,"iiis",playerid,response,listitem,inputtext);
- return true;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement