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
#2

hey you should change the dialogID.
the max. ID is 32767
Reply
#3

Lol, i forgot xD THANKS

dat yerba mate
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)