Radio
#2

You can define the dialog IDs, it may be easier to read the code this way.

Just do:

pawn Код:
#define DIALOG_TEST 1
// You define the dialog and then the 1 is the dialog ID
ShowPlayerDialog(playerid, DIALOG_TEST, DIALOG_STYLE_MSG, "This is a test!", "Next", "Close");
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
     switch(dialogid)
     {
          case DIALOG_TEST:
          {
                //CODE HERE
          }
     }
     return 1;
}
Reply


Messages In This Thread
Radio - by Pawnie - 12.04.2013, 00:58
Re: Radio - by BittleRyan - 12.04.2013, 01:35
Re: Radio - by Pawnie - 12.04.2013, 01:39
Re: Radio - by BittleRyan - 12.04.2013, 01:48
Re: Radio - by Pawnie - 12.04.2013, 02:16

Forum Jump:


Users browsing this thread: 1 Guest(s)