Your way in handling dialogs
#4

Define it all.

pawn Код:
#define DIALOG_HEYITSADIALOG (32767) // max dialog number

ShowPlayerDialog(playerid, DIALOG_HEYITSADIALOG, DIALOG_STYLE_MSGBOX,"hey","it's a dialog!","okey","gtfo");


public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) {
          if(response) switch(dialogid) {
                    case DIALOG_HEYITSADIALOG: { <do your thang> }
          }
          return 1;
}
Reply


Messages In This Thread
Your way in handling dialogs - by [L3th4l] - 11.10.2010, 22:27
Re: Your way in handling dialogs - by iFriSki - 11.10.2010, 22:41
Re: Your way in handling dialogs - by bigcomfycouch - 11.10.2010, 23:23
Re: Your way in handling dialogs - by General Abe - 12.10.2010, 07:40

Forum Jump:


Users browsing this thread: 1 Guest(s)