Dialog Not showing - 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: Dialog Not showing (
/showthread.php?tid=332357)
Dialog Not showing -
Lynn - 07.04.2012
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;
}
Re: Dialog Not showing -
.FuneraL. - 07.04.2012
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.
Re: Dialog Not showing -
Lynn - 07.04.2012
Nope.
Re: Dialog Not showing -
Kitten - 07.04.2012
The code seems to be right, try checking you're dialog ids.
Re: Dialog Not showing -
Lynn - 07.04.2012
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.
Re: Dialog Not showing -
Lynn - 08.04.2012
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.
Re: Dialog Not showing -
Kitten - 08.04.2012
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.
Re: Dialog Not showing -
Lynn - 08.04.2012
Ah, I didn't even think of that.
Thanks!