21.02.2014, 07:43
Hey all,
I'd like to know something.
Can we make 'Back' for the LIST ITEM of a dialog? Like...see below.
So can we do it like,when we click on CHAT COMMANDS or HOUSE COMMANDS,and we click 'BACK' and it takes back to the COMMANDS dialog.In other words,back for the cases 0 and 1.
Possible?
If yes,kindly explain.
Thanks!
I'd like to know something.
Can we make 'Back' for the LIST ITEM of a dialog? Like...see below.
pawn Код:
if(dialogid == DIALOG_HELP)
{
if(response)
{
switch(listitem)
{
case 0:
{
ShowPlayerDialog(playerid, DIALOG_CMDS, DIALOG_STYLE_LIST, "Commands", "Chat Commands \nHouse Commands.\nBack ", "Select", "Back");
}
case 1:
{
ShowPlayerDialog(playerid, DIALOG_INFO, DIALOG_STYLE_MSGBOX, "Server Information", "Server Name...IP bla bla.", "Select", "Back");
}
}
if(!response) return ShowPlayerDialog(playerid, DIALOG_HELP, DIALOG_STYLE_LIST, " Commands\nServer Information", "Select", "Back");
}
}
Possible?
If yes,kindly explain.
Thanks!