15.05.2011, 18:18
Im trying to make more than one dialog response, but i dont get it, errors:
Код:
C:\Documents and Settings\Jordi\Escritorio\Comando Ayuda\Untitled.pwn(73) : error 002: only a single statement (or expression) can follow each "case" C:\Documents and Settings\Jordi\Escritorio\Comando Ayuda\Untitled.pwn(73 -- 74) : error 029: invalid expression, assumed zero C:\Documents and Settings\Jordi\Escritorio\Comando Ayuda\Untitled.pwn(94) : warning 203: symbol is never used: "MostrarDialogComandos" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors.
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
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
{
}
///
switch(2)
{
switch(listitem) // This is far more efficient than using an if-elseif-else structure
{
case 0: // Listitems start with 0, not 1
{
}
}
// Add the rest of your listitems for dialog 1 here
}
}
// Add the rest of your dialogs here
}
return 0;
}

