OnDialogResponse, Whats Wrong?
#5

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;
}
Reply


Messages In This Thread
OnDialogResponse, Whats Wrong? - by PureStyle - 15.05.2011, 18:18
Re: OnDialogResponse, Whats Wrong? - by xRyder - 15.05.2011, 18:25
Re: OnDialogResponse, Whats Wrong? - by PureStyle - 15.05.2011, 18:31
Re: OnDialogResponse, Whats Wrong? - by Hobod - 15.05.2011, 18:36
Re: OnDialogResponse, Whats Wrong? - by PureStyle - 15.05.2011, 18:48
Re: OnDialogResponse, Whats Wrong? - by Elka_Blazer - 15.05.2011, 19:50

Forum Jump:


Users browsing this thread: 1 Guest(s)