Dialog Not showing
#1

The first dialog shows, but once I click on a listed choice, the dialog doesn't show
pawn Код:
public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
    if(clickedid == CRText) {
        format(istring, sizeof(istring), "%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s", sText[0], sText[1], sText[2], sText[3], sText[4], sText[5], sText[6], sText[7], sText[8], sText[9]);
        ShowPlayerDialog(playerid, THATDIALOG, DIALOG_STYLE_LIST, "Los Santos Police Department" ,istring, "Select", "Cancel");
    }
    return 1;
}
// THIS DIALOG SHOWS
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == THATDIALOG)
    {
        if(response)
        {
            if(listitem == 0)
            {
                ShowPlayerDialog(playerid, SNAME, DIALOG_STYLE_INPUT, " Information", " Some Info Here", "Next", "Stop");
                               // THIS DIALOG DOES NOT
            }
        }
    }
    return 1;
}
Reply
#2

pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == THATDIALOG)
    {
        if(response)
        {
            if(listitem == 0)
            {
                ShowPlayerDialog(playerid, THATDIALOG, DIALOG_STYLE_INPUT, " Information", " Some Info Here", "Next", "Stop");
            }
        }
    }
    return 1;
}
Try This.
Reply
#3

Nope.
Reply
#4

The code seems to be right, try checking you're dialog ids.
Reply
#5

I did Copy + Paste of the ID's so they'd be exact as-well.
And since it's a FS loaded on LVDM it shouldn't be interfering with anything else.
Reply
#6

Figured it out, it was due to two filterscripts I had loaded.
They didn't use dialogs though, so I'm still un-sure how it caused issues.
Reply
#7

Quote:
Originally Posted by Lynn
Посмотреть сообщение
Figured it out, it was due to two filterscripts I had loaded.
They didn't use dialogs though, so I'm still un-sure how it caused issues.
The fliterscript could have a return 1 in the OnDialogResponse callback make sure it's return 0 on you're other filterscripts.
Reply
#8

Ah, I didn't even think of that.
Thanks!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)