SA-MP Forums Archive
Problem with dialog - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Problem with dialog (/showthread.php?tid=631080)



Problem with dialog - makaronek123 - 22.03.2017

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


Re: Problem with dialog - RaPSoR - 22.03.2017

hey you should change the dialogID.
the max. ID is 32767


Re: Problem with dialog - makaronek123 - 22.03.2017

Lol, i forgot xD THANKS

dat yerba mate