Paying for car in car system issue
#1

So I have this car script that allows me to spawn cars etc dynamically and when you get in a dialog box pops up asking if you want to buy the car or not. When I guy it, it spawns my car and I own it and everything, but it doesn't deduct the price of the car out of my money, I have no idea how to change it either. The code for when you buy it is below and for some reason it doesn't like I said deduct the price of the car. Please help.






case 1:
{
GivePlayerMoney(playerid, -DealershipVehicles[GetPlayerVehicleID(playerid)][vPrice]);
format(string, sizeof(string), "You have purchased a %s for $%d, for more help regarding your purchase, type /carhelp.", GetVehicleName(GetPlayerVehicleID(playerid)), DealershipVehicles[GetPlayerVehicleID(playerid)][vPrice]);
SendClientMessage(playerid, YELLOW, string);
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid, 1);
return 1;
}
Reply


Messages In This Thread
Paying for car in car system issue - by ethman326 - 28.03.2013, 23:08
Re: Paying for car in car system issue - by JJB562 - 28.03.2013, 23:50
Re: Paying for car in car system issue - by Joshman543 - 28.03.2013, 23:51
Re: Paying for car in car system issue - by zxc1 - 28.03.2013, 23:52
Re: Paying for car in car system issue - by ethman326 - 29.03.2013, 00:54
Re: Paying for car in car system issue - by ethman326 - 29.03.2013, 05:34
Re: Paying for car in car system issue - by ethman326 - 29.03.2013, 16:44

Forum Jump:


Users browsing this thread: 1 Guest(s)