if(dialogid == DIALOG_OJAIL)
{
if(!response) return ShowPlayerDialog(playerid, DIALOG_OJAIL, DIALOG_STYLE_LIST,""COL_WHITE"Offline Jailing",""COL_WHITE"Players Name\nJail Time\nReason","Jail","");
{
switch(listitem)
{
case 0:
{
ShowPlayerDialog(playerid, DIALOG_OJAIL+1, DIALOG_STYLE_INPUT,""COL_WHITE"Offline Jailing",""COL_WHITE"Please input the name of the player you wish to Jail.","Ok","Back");
}
case 1:
{
ShowPlayerDialog(playerid, DIALOG_OJAIL+2, DIALOG_STYLE_INPUT,""COL_WHITE"Offline Jailing",""COL_WHITE"Please specify the amount of time(in seconds) you wish to jail this player for.","Ok","Back");
}
case 2:
{
ShowPlayerDialog(playerid, DIALOG_OJAIL+3, DIALOG_STYLE_INPUT,""COL_WHITE"Offline Jailing",""COL_WHITE"Please input the reason why you are jailing this player.","Ok","Back");
}
}
}
}
if(dialogid == DIALOG_OJAIL)
{
if(response)
{
switch(listitem)
{
case 0:
{
ShowPlayerDialog(playerid, DIALOG_OJAIL+1, DIALOG_STYLE_INPUT,""COL_WHITE"Offline Jailing",""COL_WHITE"Please input the name of the player you wish to Jail.","Ok","Back");
}
case 1:
{
ShowPlayerDialog(playerid, DIALOG_OJAIL+2, DIALOG_STYLE_INPUT,""COL_WHITE"Offline Jailing",""COL_WHITE"Please specify the amount of time(in seconds) you wish to jail this player for.","Ok","Back");
}
case 2:
{
ShowPlayerDialog(playerid, DIALOG_OJAIL+3, DIALOG_STYLE_INPUT,""COL_WHITE"Offline Jailing",""COL_WHITE"Please input the reason why you are jailing this player.","Ok","Back");
}
}
return 1;
}
else return ShowPlayerDialog(playerid, DIALOG_OJAIL, DIALOG_STYLE_LIST,""COL_WHITE"Offline Jailing",""COL_WHITE"Players Name\nJail Time\nReason","Jail","");
}
|
Try now
PHP код:
|
|
if(!response) return ShowPlayerDialog(playerid, DIALOG_OJAIL, DIALOG_STYLE_LIST,""COL_WHITE"Offline Jailing",""COL_WHITE"Players Name\nJail Time\nReason","Jail",""); { |
|
Ok i added else return and the menu wont go back to the first menu any other suggestions
|
|
Most likely a user error (you).
response = left button !response, otherwise else: right button |