24.08.2012, 13:41
1) Show me where you're using ShowPlayerDialog(playerid, DIALOG_VEHICLE_BUY...
2) Replace your DIALOG_VEHICLE_BUY response with this:
EDIT: The error is with your 'dialogid' response. Change the value for 'dialogid' to a random number such as 8523
2) Replace your DIALOG_VEHICLE_BUY response with this:
pawn Код:
case DIALOG_VEHICLE_BUY:
{
if(response)
{
new vehicleid = GetPVarInt(playerid, "DialogValue1");
new caption[32], info[256];
format(caption, sizeof(caption), "Vehicle ID %d", vehicleid);
format(info, sizeof(info), "This vehicle is for sale ($%d)\nWould you like to buy it?", VehicleValue[vehicleid]);
ShowPlayerDialog(playerid, dialogid, DIALOG_STYLE_MSGBOX, caption, info, "Yes", "No");
return 1;
}
else return 0;
return 1;
}

