16.04.2018, 16:00
Hey,
i createt a dialog with response and stuff but when the dialog is open it should close when i press "ESC" or when i click on the second button what did i wrong?
When i press on cancel it is choosing the one and when i press ESC it is choosing to.
i createt a dialog with response and stuff but when the dialog is open it should close when i press "ESC" or when i click on the second button what did i wrong?
Код HTML:
ocmd:navi(playerid,params[]) { ShowPlayerDialog(playerid, DIALOG_NAVI1, DIALOG_STYLE_LIST, "Navigationssystem", "•List 1\n•List 2\nList 3", "Choose this", "cancel"); return 1; }
Код HTML:
if(dialogid == DIALOG_NAVI1) switch(listitem) { case 0: { ShowPlayerDialog(playerid, DIALOG_NAVI2, DIALOG_STYLE_LIST, "Navigationssystem", "•alist1\n•alist2\n•alist3", "choose", "cancel"); } case 1: { } case 2: { } case 3: { } }