23.04.2016, 21:35
olб pessoal eu estou com um problema chato '-'
seguinte funfa quase tudo mais na hora de aparecer uma caixa de dialog n aparece
cmd: (funfa)
caixa de dialog que nгo estб aparecendo
ajudem +rep
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;
}