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");
}
}
if(!response) return ShowPlayerDialog(playerid, DIALOG_HELP, DIALOG_STYLE_LIST, " Commands\nServer Information", "Select", "Back"); |
Yes you can but put this commend out :
because when player response you will not get not response. |
case 0:
{
if(response)
{
ShowPlayerDialog(playerid, DIALOG_CINFO, DIALOG_STYLE_MSGBOX, "Chat Commands", "/o /b /me /do /s", "Okay", "Back");
}
if(!response) return ShowPlayerDialog(playerid, DIALOG_CMDS, DIALOG_STYLE_LIST, "Commands", "Chat Commands \nVehicle Commands \nFaction Commands \nJob Commands \nHouse Commands.\nBack ", "Select", "Cancel");
}
if(dialogid==2 && response) { switch(listitem) { case 0:ShowPlayerDialog(playerid, 4, DIALOG_STYLE_LIST, "White Males","White, Male, Young, BMX Rider(ID:23)\nWhite, Male, Young, Backpacker(ID:26)\nWhite, Male, Young, Drug Dealer(ID:29)\nWhite, Male, Young, Mountain Biker(ID:52)\nWhite, Male, Young, Hippie 1(ID:72)\nWhite, Male, Young, Hippie 2(ID:73)\nWhite, Male, Old, Street(ID:95)\nWhite, Male, Young, Jogger(ID:96)\nWhite, Male, Young, Criminal(ID:100)\nWhite, Male, Young, Street(ID:101)","Select","Back"); case 1:ShowPlayerDialog(playerid, 5, DIALOG_STYLE_LIST, "Black Males","Black Male 1\nBlack Male 2\nBlack Male 3","Select","Back"); case 2:ShowPlayerDialog(playerid, 6, DIALOG_STYLE_LIST, "Oriental Males","Oriental Male 1\nOriental Male 2\nOriental Male 3","Select","Back"); case 3:ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Hispanic Males","Oriental Male 1\nOriental Male 2\nOriental Male 3","Select","Back"); case 4:ShowPlayerDialog(playerid, 8, DIALOG_STYLE_LIST, "Native Males","Oriental Male 1\nOriental Male 2\nOriental Male 3","Select","Back"); } } else if(dialogid==2 && !response) { ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "Gender Selection", "Choose a gender:", "Male", "Female"); return 1; }
if(dialogid==2) { if(!response) { ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "Gender Selection", "Choose a gender:", "Male", "Female"); return 1; } switch(listitem) { case 0:ShowPlayerDialog(playerid, 4, DIALOG_STYLE_LIST, "White Males","White, Male, Young, BMX Rider(ID:23)\nWhite, Male, Young, Backpacker(ID:26)\nWhite, Male, Young, Drug Dealer(ID:29)\nWhite, Male, Young, Mountain Biker(ID:52)\nWhite, Male, Young, Hippie 1(ID:72)\nWhite, Male, Young, Hippie 2(ID:73)\nWhite, Male, Old, Street(ID:95)\nWhite, Male, Young, Jogger(ID:96)\nWhite, Male, Young, Criminal(ID:100)\nWhite, Male, Young, Street(ID:101)","Select","Back"); case 1:ShowPlayerDialog(playerid, 5, DIALOG_STYLE_LIST, "Black Males","Black Male 1\nBlack Male 2\nBlack Male 3","Select","Back"); case 2:ShowPlayerDialog(playerid, 6, DIALOG_STYLE_LIST, "Oriental Males","Oriental Male 1\nOriental Male 2\nOriental Male 3","Select","Back"); case 3:ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Hispanic Males","Oriental Male 1\nOriental Male 2\nOriental Male 3","Select","Back"); case 4:ShowPlayerDialog(playerid, 8, DIALOG_STYLE_LIST, "Native Males","Oriental Male 1\nOriental Male 2\nOriental Male 3","Select","Back"); } }