jetzt hab ich das problem das wenn ich auf zb Montag klicke das er nach 2/3sek selbst wieder zurück springt warum ???
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 1)
{
if(response)
switch(listitem)
{
case 0:
{
ShowPlayerDialog(playerid,2,DIALOG_STYLE_LIST,"Montag","Keine Termine","Info","zuruck");
}
case 1:
{
ShowPlayerDialog(playerid,3,DIALOG_STYLE_LIST,"Dienstag","Keine Termine","Info","zuruck");
}
case 2:
{
ShowPlayerDialog(playerid,4,DIALOG_STYLE_LIST,"Mittwoch","Keine Termine","Info","zuruck");
}
case 3:
{
ShowPlayerDialog(playerid,5,DIALOG_STYLE_LIST,"Donerstag","Keine Termine","Info","zuruck");
}
case 4:
{
ShowPlayerDialog(playerid,6,DIALOG_STYLE_LIST,"Freitag","Keine Termine","Info","zuruck");
}
case 5:
{
ShowPlayerDialog(playerid,7,DIALOG_STYLE_LIST,"Samstag","Keine Termine","Info","zuruck");
}
case 6:
{
ShowPlayerDialog(playerid,8,DIALOG_STYLE_LIST,"Sontag","Keine Termine","Info","zuruck");
}
}
}
else if (!response)
{
ShowPlayerDialog(playerid,1,DIALOG_STYLE_LIST,"Termine-BOX","Montag[]\nDinstag[]\nMittwoch[]\nDonerstag[]\nFreitag[]\nSamstag[]\nSontag[]","Info","zuruck");
}
return 1;
}
Alles anzeigen