[HELP] Dialog Problem
#11

pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
   if(dialogid == /*first dialog ID*/)
   {
      if(listitem == /*listitemID of the "Select by Name", they start with 0*/)
      {
         if(response)
         {
            ShowPlayerDialog(playerid, ID,  DIALOG_STYLE_INPUT, "Mobile Data Computer", "Insert the Player Name ((ID))", "Ok", "Log Out");
         }
      }
   }
   else if(dialogid == /* id of second*/)
   {
      if(response)
      {
         if(!IsPlayerConnected(strval(inputtext)) return 1;
         new string[100];
         format(string, sizeof(string), "Data: %d", PlayerData[strval(inputtext)][pCarWarn]);
         ShowPlayerDialog(playerid, ID, DIALOG_STYLE_MSGBOX, "Mobile Data Computer", string, "Ok", "Log out");
      }
   }
   return 1;
}
A short example.
Reply


Messages In This Thread
[HELP] Dialog Problem - by Fredden1993 - 31.08.2010, 12:50
Re: [HELP] Dialog Problem - by Grim_ - 31.08.2010, 12:52
Re: [HELP] Dialog Problem - by Nero_3D - 31.08.2010, 12:54
Re: [HELP] Dialog Problem - by Fredden1993 - 31.08.2010, 12:58
Re: [HELP] Dialog Problem - by Grim_ - 31.08.2010, 13:04
Re: [HELP] Dialog Problem - by Fredden1993 - 31.08.2010, 13:06
Re: [HELP] Dialog Problem - by Grim_ - 31.08.2010, 13:11
Re: [HELP] Dialog Problem - by Fredden1993 - 31.08.2010, 13:13
Re: [HELP] Dialog Problem - by Grim_ - 31.08.2010, 13:23
Re: [HELP] Dialog Problem - by Fredden1993 - 31.08.2010, 13:33
Re: [HELP] Dialog Problem - by Grim_ - 31.08.2010, 13:38
Re: [HELP] Dialog Problem - by Fredden1993 - 31.08.2010, 13:52
Re: [HELP] Dialog Problem - by Nero_3D - 31.08.2010, 13:54
Re: [HELP] Dialog Problem - by Grim_ - 31.08.2010, 13:58
Re: [HELP] Dialog Problem - by Fredden1993 - 31.08.2010, 14:09
Re: [HELP] Dialog Problem - by Nero_3D - 31.08.2010, 15:56

Forum Jump:


Users browsing this thread: 2 Guest(s)