22.12.2011, 23:16
I have a little problem with DIALOG_STYLE_MSGBOX.
I have this code:
and a command
When I do the command, the dialog shows. When I press "OK" (Left button), it comes up with the dialog saying "Slot 1\nSlot 2\nSlot 3" as it should, but when I press "Next", nothing happens? Instead of going on to the next Dialog, the box just closes.. All help is appreciated.
I have this code:
pawn Код:
case 356:
{
if(!response)
{
//next dialog
ShowPlayerDialog(playerid, 345, DIALOG_STYLE_MSGBOX, "Test", "Test", "Test", "");
return 1;
}
else
{
ShowPlayerDialog(playerid, 94, DIALOG_STYLE_LIST, "{33FF33}Clover", "Slot 1\nSlot 2\nSlot 3", "Select", "Cancel");
}
}
pawn Код:
command(buycar, playerid, params[])
{
ShowPlayerDialog(playerid, 356, DIALOG_STYLE_MSGBOX, "Micks Motors", "Clover\nTo buy this clover press OK. To see the next vehicle, press NEXT.", "OK", "Next");
}