Dialog help!
#10

pawn Код:
#include <a_samp>

#if defined FILTERSCRIPT

#else

public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/Jobs", cmdtext, true, 10) == 0)
    {
        ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Job information", "Police \nPilot \nTaxi", "Select", "Cancel");
        return 1;
        }
    return 0;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{

    if(dialogid == 157 && response)
  {
    switch(listitem)
    {
      case 0:
      {
                SendClientMessageToAll(0xAA0000AA,"Type /Police to see information about police job!");
      }
      case 1:
      {
            SendClientMessage(playerid,0xAA0000AA,"Type /Pilot to see information about pilot job!");
      }
      case 2:
      {
                SendClientMessage(playerid,0xAA0000AA,"Type /Taxi to see information about taxi job!");
      }
    }
  }
        return 1;
}
#endif
thats not the fixed im saying is it because /jobs has
pawn Код:
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Job information", "Police \nPilot \nTaxi", "Select", "Cancel");
the id 1 and dialog response has
pawn Код:
if(dialogid == 157 && response)
  {
? i bet it is...
Reply


Messages In This Thread
Dialog help! - by Assyria - 26.03.2010, 17:28
Re: Dialog help! - by MadeMan - 26.03.2010, 18:30
Re: Dialog help! - by Assyria - 26.03.2010, 18:32
Re: Dialog help! - by MadeMan - 26.03.2010, 18:34
Re: Dialog help! - by Assyria - 26.03.2010, 18:34
Re: Dialog help! - by MadeMan - 26.03.2010, 18:38
Re: Dialog help! - by Assyria - 26.03.2010, 18:40
Re: Dialog help! - by MadeMan - 26.03.2010, 18:42
Re: Dialog help! - by Assyria - 31.03.2010, 16:24
Re: Dialog help! - by [WF]Demon - 31.03.2010, 16:28

Forum Jump:


Users browsing this thread: 1 Guest(s)