[Ajuda] Ajuda com Dialog
#1

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
Reply
#2

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.
Reply
#3

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

O maior dialogid permitido й 32767.
Reply
#5

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
Reply
#6

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.
Reply
#7

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)