Need help with a Dialog.
#2

here is the example. EXAMPLE ONLY

pawn Код:
ShowPlayerDialog(playerid, 3021, DIALOG_STYLE_LIST, "Choose your Donuts", "Happy Meal\nSimple Meal", "Choose", "Back");
pawn Код:
//OnDialogResponse

if(dialogid == 3021)
{
      if(!response) return 0; //if player press back it will do nothing
      if(response)
      {
            switch(listitem)
            {
                   case 0: //if player selects Happy Meal
                   {
                          ShowPlayerDialog(playerid, 3022, DIALOG_STYLE_MSGBOX, "OWNED!", "You got owned!", "OK", ""); //another dialog will pop up with dialogstyle msgbox
                   }
                   case 1: SendClientMessage(playerid, -1, "Nice you didn't get owned!"); //a message will pop up after select Simple Meal
            }
      }
}
Reply


Messages In This Thread
Need help with a Dialog. - by rangerxxll - 01.04.2012, 04:36
Re: Need help with a Dialog. - by Reklez - 01.04.2012, 04:43

Forum Jump:


Users browsing this thread: 1 Guest(s)