15.05.2011, 18:48
No problem guy, i repaired it myself, here you got a look:
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { //En caso de llamar dialog Ayuda switch(1) { case 1: { if(!response) { MostrarDialogCancelar(playerid); return 1; // We processed it } switch(listitem) // This is far more efficient than using an if-elseif-else structure { case 0: // Listitems start with 0, not 1 { MostrarDialogComandos(playerid); } case 1: { MostrarDialogReglas(playerid); } case 2: { MostrarDialogInformacion(playerid); } case 3: { MostrarDialogAdmin(playerid); } // Add the rest of your listitems for dialog 1 here } } // Add the rest of your dialogs here } //En caso de llamar dialog comandos switch(3) { case 1: { if(!response) { MostrarDialogCancelar(playerid); return 1; // We processed it } switch(listitem) // This is far more efficient than using an if-elseif-else structure { case 0: // Listitems start with 0, not 1 { //NADA } // Add the rest of your listitems for dialog 1 here } } // Add the rest of your dialogs here } //En caso de llamar Dialog Ayuda switch(6) { case 1: { if(!response) { MostrarDialogCancelar(playerid); return 1; // We processed it } switch(listitem) // This is far more efficient than using an if-elseif-else structure { case 0: // Listitems start with 0, not 1 { //NADA } // Add the rest of your listitems for dialog 1 here } } // Add the rest of your dialogs here } return 0; }