[AJUDA] Dialogid
#1

Boa noite pessoal, eu fiz esse comando para qndo o player digitar /garagem aparecer esses dialogs, mas acontece q sу o primeiro dialog aparece, qndo escolho "tirar onibus" ou "guardar onibus" nao aparecem os segundos dialogs, o que pode ser??

PHP код:
if(dialogid == DialogBUS)
    {
        if(
response)
        {
                if(
listitem == 0)
                {
                    
ShowPlayerDialog(playeridDialogBUS+1DIALOG_STYLE_LIST"Tirar Onibus""Onibus 1\nOnibus 2\nOnibus 3\nOnibus 4\nOnibus 5""Selecionar""Cancelar");
                }
                if(
listitem == 1)
                {
                    
ShowPlayerDialog(playeridDialogBUS-1DIALOG_STYLE_LIST"Guardar Onibus""Onibus 1\nOnibus 2\nOnibus 3\nOnibus 4\nOnibus 5""Selecionar""Cancelar");
                }
        }
        return 
true;
    }
    if(
dialogid == DialogBUS+1)
    {
        if(
response)
        {
                if(
listitem == 0)
                {
                
SetVehiclePos(162, -102.44511360.660210.2307);
                
SetVehicleZAngle(162185.0);
                }
                if(
listitem == 1)
                {
                
SetVehiclePos(163, -102.44511360.660210.2307);
                
SetVehicleZAngle(163185.0);
                }
                if(
listitem == 2)
                {
                
SetVehiclePos(164, -102.44511360.660210.2307);
                
SetVehicleZAngle(164185.0);
                }
                if(
listitem == 3)
                {
                
SetVehiclePos(165, -102.44511360.660210.2307);
                
SetVehicleZAngle(165185.0);
                }
                if(
listitem == 4)
                {
                
SetVehiclePos(166, -102.44511360.660210.2307);
                
SetVehicleZAngle(166185.0);
                }
        }
        return 
true;
    }
    if(
dialogid == DialogBUS-1)
    {
        if(
response)
        {
                if(
listitem == 0)
                {
                
SetVehicleToRespawn(162);
                }
                if(
listitem == 1)
                {
                
SetVehicleToRespawn(163);
                }
                if(
listitem == 2)
                {
                
SetVehicleToRespawn(1664);
                }
                if(
listitem == 3)
                {
                
SetVehicleToRespawn(165);
                }
                if(
listitem == 4)
                {
                
SetVehicleToRespawn(166);
                }
        }
        return 
true;
    } 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)