Selling vehicle at half price
#2

Try:

pawn Код:
if(listitem == 2)
{
    new vsellstring[128];
    if(pInfo[playerid][pcar] ==0) return SendClientMessage(playerid,0xAA3333AA, "{F81414}[ Error ]: {FFFFFF}You dont own a car!");
    new Float:sellprice = floatdiv(ShopVehicles[VehicleSelected[playerid]][Price], 2.0);
    format(vsellstring, sizeof(vsellstring), "You selling your %s price as $%.2f!", VehicleNames2[GetVehicleModel(GetPlayerVehicleID(playerid)) - 400], sellprice);
    ShowPlayerDialog(playerid, DIALOG_CONFIRM_VEHICLE_SELL, DIALOG_STYLE_MSGBOX, "DealerShip", vsellstring, "Sell", "Cancel");
}
Reply


Messages In This Thread
Selling vehicle at half price - by SalmaN97 - 04.01.2015, 01:55
Re: Selling vehicle at half price - by Schneider - 04.01.2015, 03:52
Re: Selling vehicle at half price - by SalmaN97 - 04.01.2015, 17:55
Re: Selling vehicle at half price - by Schneider - 04.01.2015, 18:06

Forum Jump:


Users browsing this thread: 1 Guest(s)