[SOLVED] Dialog Doesnt Work !
#1

Well heres my problem ! i checked the code and cant find it i Chose maybe KICK and it gives me BAN witch is before kick .

pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if (dialogid == //privacy security)
    {
      if (response == 1)
      {
            switch(listitem)
            {
              case 1: ShowPlayerDialog(playerid,89,DIALOG_STYLE_INPUT,"Ban Someone","Reason (optional) :","Accept","Denied");
              case 2: ShowPlayerDialog(playerid,57,DIALOG_STYLE_INPUT,"Kick Someone","Reason (optional) :","Accept","Denied");
              case 3: ShowPlayerDialog(playerid,67,DIALOG_STYLE_INPUT,"Jail Someone","Reason (optional) :","Accept","Denied");
              case 4: ShowPlayerDialog(playerid,55,DIALOG_STYLE_INPUT,"Mute Someone","Reason (optional) :","Accept","Denied");
              case 5: ShowPlayerDialog(playerid,50,DIALOG_STYLE_INPUT,"Admin PM : ","Enter ADMIN PM Text : ","Send","Cancel");
              case 6: ShowPlayerDialog(playerid,45,DIALOG_STYLE_INPUT,"Take Cash $$$","How Much To Take (-$$$) : ","Take $$$","Cancel");
            }
      }
    }
    if (dialogid == 89 && response == 1)
    {
// my code
    if (dialogid == 67 && response == 1)
    {
// my code
          else
// my code
    }
    if (dialogid == 55 && response == 1)
    {
// my code
      }
    }
    if (dialogid == 50 && response == 1)
    {
// my code
    }
    return 1;
}
i had to cover those with // my code and // privacy security in case someone wants to steal my idea . Sorry . but when i chose the last dialog ( 50 ) it gives me the codes of the one before ( ID : 67 )
Reply


Messages In This Thread
[SOLVED] Dialog Doesnt Work ! - by Micko9 - 09.04.2010, 09:11
Re: Dialog Doesnt Work ! - by biltong - 09.04.2010, 09:21
Re: Dialog Doesnt Work ! - by Grim_ - 09.04.2010, 09:22
Re: Dialog Doesnt Work ! - by Micko9 - 09.04.2010, 09:25

Forum Jump:


Users browsing this thread: 1 Guest(s)