Dialog msgbox?
#1

Im currently learning that whole dialog thing and i have a problem.
When you press buy it does what its supposed to do but when you press cancel nothing happends
i can't get that thing to work and i dont really see a problem so i hope you guys can help out here.

pawn Код:
ShowPlayerDialog( playerid, 4512, DIALOG_STYLE_MSGBOX, "Menu", "Text here", "Buy", "Cancel");
pawn Код:
case 4512:
{
    if( response == 0 )
    {
        RemovePlayerFromVehicle(playerid);
        SendClientMessage( playerid, WHITE, "You pressed cancel." );
    }
    else
    {
        RemovePlayerFromVehicle(playerid);
        SendClientMessage( playerid, WHITE, "You pressed buy." );
    }
}
And no its not this:

pawn Код:
if(dialogid == 4512 && response == 1) // And so on... It gives the same result
Reply


Messages In This Thread
Dialog msgbox? - by The Woody - 17.03.2011, 21:56
Re: Dialog msgbox? - by The Woody - 18.03.2011, 00:52
Re: Dialog msgbox? - by admantis - 18.03.2011, 00:59
Re: Dialog msgbox? - by The Woody - 18.03.2011, 02:09
Re: Dialog msgbox? - by admantis - 18.03.2011, 02:14
Re: Dialog msgbox? - by -Rebel Son- - 18.03.2011, 02:16
Re: Dialog msgbox? - by The Woody - 18.03.2011, 02:30
Re: Dialog msgbox? - by -Rebel Son- - 18.03.2011, 03:35
Re: Dialog msgbox? - by JamesC - 18.03.2011, 04:02
Re: Dialog msgbox? - by The Woody - 18.03.2011, 12:53

Forum Jump:


Users browsing this thread: 1 Guest(s)