Problem with dialog
#1

Hi, i have problem with a dialog response.

I have a:

Код:
 if(!strcmp(ItemName,"Zelatyna",true))
  {
    ShowPlayerDialog(playerid, 88669, DIALOG_STYLE_LIST, "Zelatyna", "Information \nDestroy", "Ok", "Quit");
  }
and:

Код:
if(dialogid==88669) {
        if(response) {
            if(listitem==0) {                    //INFO
                SendClientMessage(playerid,COLOR_GODFATHER,"Item need for craft XXX");
            }
            if(listitem==1) {                     //DESTROY
				RemoveItem(playerid,"Zelatyna",1);
                PlayerInfo[playerid][pSlot] -= 1;
                SendClientMessage(playerid,COLOR_GODFATHER,"You destroy 1 Zelatyna");
            }

        }

    }
And after i use "Zelatyna" i get a dialog style list with this options but, if i click Informations or Destroy - i get nothing, 0 message, 0 something..

idk why
Reply


Messages In This Thread
Problem with dialog - by makaronek123 - 22.03.2017, 20:54
Re: Problem with dialog - by RaPSoR - 22.03.2017, 21:07
Re: Problem with dialog - by makaronek123 - 22.03.2017, 21:33

Forum Jump:


Users browsing this thread: 1 Guest(s)