17.03.2011, 21:56
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.
And no its not this:
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." );
}
}
pawn Код:
if(dialogid == 4512 && response == 1) // And so on... It gives the same result