if(dialogid == BUSJOB)
{
if(response)
{
switch(listitem)
{
case 0:
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid, 1308.3702, -1857.7684, 13.5469, 7.0); //1st Stat
BusCP[playerid] = 1;
}
case 1:
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid, 1308.3702, -1857.7684, 13.5469, 7.0); //1st Stat
}
case 2:
{
ShowPlayerDialog(playerid, BUSJOB, DIALOG_STYLE_LIST,"Select the Route","Route #1\nRoute #2\nRoute #3\nRoute #4","Select","Cancel");
}
case 3:
{
ShowPlayerDialog(playerid, BUSJOB, DIALOG_STYLE_LIST,"Select the Route","Route #1\nRoute #2\nRoute #3\nRoute #4","Select","Cancel");
}
}
}
return 1;
}
Probier mal
Edit:// Wenn das so nicht läuft, probier sonst mal
if(listitem == 0) { }else if(listitem == 1) { }else if(listitem == 2) { }
Und so weiter