17.11.2017, 20:13
(
Последний раз редактировалось pulsare; 17.11.2017 в 20:53.
)
Hey,
My dialog ignores Listitem Number 3 (+)
The others are working fine
Nothing happens and the dialog is not shown
I tried all Dialog styles DIALOG_LIST DIALOG_TABLIST DIALOG_TABLIST_HEADERS
no one works.
ShowPlayerDialog(playerid, SETTINGS, DIALOG_STYLE_TABLIST, "Settings","Change Password\nChange Name\nChange Security Code\nDelete Security Code", "Select", "Exit");
//"Delete Security Code" is not working
My dialog ignores Listitem Number 3 (+)
The others are working fine
Nothing happens and the dialog is not shown
I tried all Dialog styles DIALOG_LIST DIALOG_TABLIST DIALOG_TABLIST_HEADERS
no one works.
ShowPlayerDialog(playerid, SETTINGS, DIALOG_STYLE_TABLIST, "Settings","Change Password\nChange Name\nChange Security Code\nDelete Security Code", "Select", "Exit");
//"Delete Security Code" is not working
Quote:
if(dialogid == SETTINGS) { if(response) { if(listitem == 0) { ShowPlayerDialog(playerid,NEWPW,DIALOG_STYLE_INPUT ,"Password","Choose a new Password","Choose","Cancel"); } if(listitem == 1) { SendClientMessage(playerid,BLAU,"You dont have a namechange - Fuction not worked out"); } if(listitem == 2) { if(sSpieler[playerid][pPassport] == 1) { ShowPlayerDialog(playerid,NEWCODE,DIALOG_STYLE_INP UT,"Security Check","Enter your current Security Code first","Choose","Cancel"); } else { SendClientMessage(playerid,ROT,"You don't have a Security Code! You must create one first!"); } if(listitem == 3) { ShowPlayerDialog(playerid,AREOK,DIALOG_STYLE_INPUT ,"Security Check","Enter your current Security Code first","Choose","Cancel"); [// This dialog is not shown } return 1; } } } |