07.04.2012, 22:37
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;
}