SA-MP Forums Archive
[AJUDA] Dialogid - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [AJUDA] Dialogid (/showthread.php?tid=338125)



[AJUDA] Dialogid - victor_thug - 29.04.2012

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(playerid, DialogBUS+1, DIALOG_STYLE_LIST, "Tirar Onibus", "Onibus 1\nOnibus 2\nOnibus 3\nOnibus 4\nOnibus 5", "Selecionar", "Cancelar");
                }
                if(
listitem == 1)
                {
                    
ShowPlayerDialog(playerid, DialogBUS-1, DIALOG_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.4451, 1360.6602, 10.2307);
                
SetVehicleZAngle(162, 185.0);
                }
                if(
listitem == 1)
                {
                
SetVehiclePos(163, -102.4451, 1360.6602, 10.2307);
                
SetVehicleZAngle(163, 185.0);
                }
                if(
listitem == 2)
                {
                
SetVehiclePos(164, -102.4451, 1360.6602, 10.2307);
                
SetVehicleZAngle(164, 185.0);
                }
                if(
listitem == 3)
                {
                
SetVehiclePos(165, -102.4451, 1360.6602, 10.2307);
                
SetVehicleZAngle(165, 185.0);
                }
                if(
listitem == 4)
                {
                
SetVehiclePos(166, -102.4451, 1360.6602, 10.2307);
                
SetVehicleZAngle(166, 185.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;
    }