SA-MP Forums Archive
[ajuda]Dialog nao e meu forte - 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]Dialog nao e meu forte (/showthread.php?tid=309748)



[ajuda]Dialog nao e meu forte - kshorro - 08.01.2012

CARA, EU NГO CONSIGO CRIAR UM DIALOG (LIST)

pawn Код:
COMMAND:destino(playerid, params[])
{
    if(IsPlayerInRangeOfPoint(playerid, 1.0, -2161.1670,640.3607,1052.3817))
    {
        ShowPlayerDialog(playerid,1,DIALOG_STYLE_LIST,"Passagens","Las Ventura\nSan Fierro","Confirmar","Cancelar");
        return 1;
    }
    return 1;
}
Atй aqui nem um problema, agora fica Fodis "
Tipo euq euro colocar As Coordenadas Para o cara assim que escolher entre San Fierro ou Las Ventura ele Seja Teleportado, OLHA COMO EU FIZ MAIS NADA acontece

pawn Код:
if(dialogid == 1)
    {
        if(response)
        {
            if(listitem == 0)
            {
                SendClientMessage(playerid, -1, "ok, Seu Destino й esse");
                return 1;
            }
            if(listitem == 1)
            {
                SendClientMessage(playerid, -1, "Ok, Vocк cancelou");
                return 1;
            }
        }
    }
    return 1;
}



Re: [ajuda]Dialog nao e meu forte - erickexp - 08.01.2012

SetPlayerPos


Re: [ajuda]Dialog nao e meu forte - WeenSoares_ - 08.01.2012

SetPlayerPos(playerid, x, y, z);

Legenda: X = Cordenada X, Y = Cordenada Y, Z = Cordenada Z


Re: [ajuda]Dialog nao e meu forte - kshorro - 08.01.2012

Quote:
Originally Posted by WeenSoares_
Посмотреть сообщение
SetPlayerPos(playerid, x, y, z);

Legenda: X = Cordenada X, Y = Cordenada Y, Z = Cordenada Z
SIM ATЙ AI EU SEI MAIS TIPO ASSIM QUE EU SELECIONAR SAN FIERRO, ELE TELEPORTA PARA LA ASSIM COMO LAS VENTURA


Re: [ajuda]Dialog nao e meu forte - @SwY - 08.01.2012

pawn Код:
if(dialogid == 1)
    {
        if(response)
        {
            if(listitem == 0)
            {
               SendClientMessage(playerid, -1, "ok, Seu Destino й esse (LV)");
               SetPlayerPos(playerid, X,Y,Z); // Coloque as cordenadas de LV.
               return 1;
            }
            if(listitem == 1)
            {
                SendClientMessage(playerid, -1, "ok, Seu Destino й esse (SF)");
                SetPlayerPos(playerid, X,Y,Z); // Coloque as cordenadas de SF.
                return 1;
            }
        }
    }
    return 1;
}



Re: [ajuda]Dialog nao e meu forte - kshorro - 08.01.2012

qual й o local certo para colocar Tipo isso que eu quero explicar !


Re: [ajuda]Dialog nao e meu forte - kshorro - 08.01.2012

Quote:
Originally Posted by @SwY
Посмотреть сообщение
pawn Код:
if(dialogid == 1)
    {
        if(response)
        {
            if(listitem == 0)
            {
               SendClientMessage(playerid, -1, "ok, Seu Destino й esse (LV)");
               SetPlayerPos(playerid, X,Y,Z); // Coloque as cordenadas de LV.
               return 1;
            }
            if(listitem == 1)
            {
                SendClientMessage(playerid, -1, "ok, Seu Destino й esse (SF)");
                SetPlayerPos(playerid, X,Y,Z); // Coloque as cordenadas de SF.
                return 1;
            }
        }
    }
    return 1;
}
VLW MAN !


Re: [ajuda]Dialog nao e meu forte - @SwY - 08.01.2012

Nada


Re: [ajuda]Dialog nao e meu forte - kshorro - 08.01.2012

OPA MAN Nao Funfo !
TIPO NГO ACONTECE NADA !!
NAO MANDA A MENSAGEM E NEM TELEPORTA


Re: [ajuda]Dialog nao e meu forte - @SwY - 09.01.2012

No inicio do GM:

pawn Код:
#define LVSF 9985
pawn Код:
COMMAND:destino(playerid, params[])
{
    if(IsPlayerInRangeOfPoint(playerid, 1.0, -2161.1670,640.3607,1052.3817))
    {
        ShowPlayerDialog(playerid,LVSF,DIALOG_STYLE_LIST,"Passagens","Las Ventura\nSan Fierro","Confirmar","Cancelar");
        return 1;
    }
    return 1;
}
pawn Код:
if(dialogid == LVSF)
    {
        if(response)
        {
            if(listitem == 0)
            {
               SendClientMessage(playerid, -1, "ok, Seu Destino й esse (LV)");
               SetPlayerPos(playerid, X,Y,Z); // Coloque as cordenadas de LV.
               return 1;
            }
            if(listitem == 1)
            {
                SendClientMessage(playerid, -1, "ok, Seu Destino й esse (SF)");
                SetPlayerPos(playerid, X,Y,Z); // Coloque as cordenadas de SF.
                return 1;
            }
        }
    }
    return 1;
}
Faz o teste. .-.