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; } } } |
Why do you use DIALOG_STYLE_TABLIST when you can use DIALOG_STYLE_LIST
You aren't using any " \t " |
I tried all Dialog styles DIALOG_LIST DIALOG_TABLIST DIALOG_TABLIST_HEADERS
|
Then you already had a problem if you can't use any of these dialogs.
|
ShowPlayerDialog(playerid, SETTINGS, DIALOG_STYLE_TABLIST, "Settings","Change Password\nChange Name\nChange Security Code\nDelete Security Code", "Select", "Exit"); //"Change Security Code" is not working |
"Change Security Code" is listitem 2.
Which listitem doesn't work, you said the second one, but in the code you said it's the third one |
ShowPlayerDialog(playerid, SETTINGS, DIALOG_STYLE_LIST, "Settings","Change Password\nChange Name\nChange Security Code\nDelete Security Code", "Select", "Exit");
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == SETTINGS)
{
if(!response) return 1;
if(listitem == 0) return ShowPlayerDialog(playerid,NEWPW,DIALOG_STYLE_INPUT ,"Password","Choose a new Password","Choose","Cancel");
if(listitem == 1) return SendClientMessage(playerid,BLAU,"You dont have a namechange - Fuction not worked out");
if(listitem == 2)
{
if(sSpieler[playerid][pPassport] == 1) return ShowPlayerDialog(playerid,NEWCODE,DIALOG_STYLE_INP UT,"Security Check","Enter your current Security Code first","Choose","Cancel");
SendClientMessage(playerid,ROT,"You don't have a Security Code! You must create one first!");
return 1;
}
if(listitem == 3) return ShowPlayerDialog(playerid,AREOK,DIALOG_STYLE_INPUT ,"Security Check","Enter your current Security Code first","Choose","Cancel"); [// This dialog is not shown
}
return 1;
}