Vehicle dialog problem
#4

1) Show me where you're using ShowPlayerDialog(playerid, DIALOG_VEHICLE_BUY...

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;
}
EDIT: The error is with your 'dialogid' response. Change the value for 'dialogid' to a random number such as 8523
Reply


Messages In This Thread
Vehicle dialog problem - by MrBlake - 24.08.2012, 13:00
Re: Vehicle dialog problem - by clarencecuzz - 24.08.2012, 13:28
Re: Vehicle dialog problem - by MrBlake - 24.08.2012, 13:38
Re: Vehicle dialog problem - by clarencecuzz - 24.08.2012, 13:41
Re: Vehicle dialog problem - by MrBlake - 24.08.2012, 13:57

Forum Jump:


Users browsing this thread: 1 Guest(s)