SA-MP Forums Archive
[Ajuda] Ajuda com Dialog - 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] Ajuda com Dialog (/showthread.php?tid=605732)



Ajuda com Dialog - Italoigt - 23.04.2016

olб pessoal eu estou com um problema chato '-'


seguinte funfa quase tudo mais na hora de aparecer uma caixa de dialog n aparece

pawn Код:
#define     COMB                  524161263
#define     D_GASOLINA            524165241263

cmd: (funfa)
pawn Код:
if( !strcmp( cmd, "/abastecer", true ))
    {
    ShowPlayerDialog(playerid, COMB, DIALOG_STYLE_LIST, "Combustiveis", "Gasolina\nDiesel\nEtanol", "Selecionar", "Sair");
    }

caixa de dialog que nгo estб aparecendo
pawn Код:
if(dialogid == COMB)
{
if(response)
{
new
stg[ 1500 ];

if(listitem == 0)
{

format( stg, sizeof( stg ), "Digite a quantia em que vocк queira abastecer\n\nMaximo de Combustivel 100 litros\n\nValor por litro $4");
ShowPlayerDialog( playerid, D_GASOLINA, DIALOG_STYLE_INPUT, "Gasolina", stg, "Abastecer", "Cancelar" );
}
}
if(listitem == 1)
{
format( gStr, sizeof( gStr ), "Digite a quantia em que vocк queira abastecer\n\nMaximo de Combustivel 100 litros\n\nValor por litro $2");
ShowPlayerDialog( playerid, D_GASOLINA, DIALOG_STYLE_INPUT, "Diesel", gStr, "Abastecer", "Cancelar" );
}
if(listitem == 2)
{
format( gStr, sizeof( gStr ), "Digite a quantia em que vocк queira abastecer\n\nMaximo de Combustivel 100 litros\n\nValor por litro $2");
ShowPlayerDialog( playerid, D_GASOLINA, DIALOG_STYLE_INPUT, "Diesel", gStr, "Abastecer", "Cancelar" );
}
return 1;
}
ajudem +rep


Re: Ajuda com Dialog - CZ - 23.04.2016

PHP код:
if(dialogid == COMB)
{
if(
response)
{
new
stg1500 ];
if(
listitem == 0)
{
formatstgsizeofstg ), "Digite a quantia em que vocк queira abastecer\n\nMaximo de Combustivel 100 litros\n\nValor por litro $4");
ShowPlayerDialogplayeridD_GASOLINADIALOG_STYLE_INPUT"Gasolina"stg"Abastecer""Cancelar" );
}
}
if(
listitem == 1)
{
formatgStrsizeofgStr ), "Digite a quantia em que vocк queira abastecer\n\nMaximo de Combustivel 100 litros\n\nValor por litro $2");
ShowPlayerDialogplayeridD_GASOLINADIALOG_STYLE_INPUT"Diesel"gStr"Abastecer""Cancelar" );
}
if(
listitem == 2)
{
formatgStrsizeofgStr ), "Digite a quantia em que vocк queira abastecer\n\nMaximo de Combustivel 100 litros\n\nValor por litro $2");
ShowPlayerDialogplayeridD_GASOLINADIALOG_STYLE_INPUT"Diesel"gStr"Abastecer""Cancelar" );
}
return 
0;

Tenta agr.


Re: Ajuda com Dialog - F1N4L - 23.04.2016

O ID do diбlogo nгo pode ser um nъmero tгo grande, encurte para uns 4 caracteres. (Ex.: 1000)


Re: Ajuda com Dialog - zPain - 23.04.2016

O maior dialogid permitido й 32767.


Re: Ajuda com Dialog - Italoigt - 23.04.2016

Quote:
Originally Posted by CZ
Посмотреть сообщение
PHP код:
if(dialogid == COMB)
{
if(
response)
{
new
stg1500 ];
if(
listitem == 0)
{
formatstgsizeofstg ), "Digite a quantia em que vocк queira abastecer\n\nMaximo de Combustivel 100 litros\n\nValor por litro $4");
ShowPlayerDialogplayeridD_GASOLINADIALOG_STYLE_INPUT"Gasolina"stg"Abastecer""Cancelar" );
}
}
if(
listitem == 1)
{
formatgStrsizeofgStr ), "Digite a quantia em que vocк queira abastecer\n\nMaximo de Combustivel 100 litros\n\nValor por litro $2");
ShowPlayerDialogplayeridD_GASOLINADIALOG_STYLE_INPUT"Diesel"gStr"Abastecer""Cancelar" );
}
if(
listitem == 2)
{
formatgStrsizeofgStr ), "Digite a quantia em que vocк queira abastecer\n\nMaximo de Combustivel 100 litros\n\nValor por litro $2");
ShowPlayerDialogplayeridD_GASOLINADIALOG_STYLE_INPUT"Diesel"gStr"Abastecer""Cancelar" );
}
return 
0;

Tenta agr.
NAUM FUNFOU

Quote:
Originally Posted by F1N4L
Посмотреть сообщение
O ID do diбlogo nгo pode ser um nъmero tгo grande, encurte para uns 4 caracteres. (Ex.: 1000)
CON TINUA SEM FUNFAR


Re: Ajuda com Dialog - LockedLucas - 23.04.2016

Troque o id da dialog tipo.

PHP код:
#define     COMB                  1067
#define     D_GASOLINA         1068 
Porque como disseram ali em cima as dialogs nгo podem ter um id muito alto.


Re: Ajuda com Dialog - Italoigt - 24.04.2016

Quote:
Originally Posted by LockedLucas
Посмотреть сообщение
Troque o id da dialog tipo.

PHP код:
#define     COMB                  1067
#define     D_GASOLINA         1068 
Porque como disseram ali em cima as dialogs nгo podem ter um id muito alto.
VLW FUNFOU