01.10.2013, 19:58
On your code with strcmp "sell" do the following:
Replace it SafeJBC_GivePlayerMoney(playerid,carsellprice);
with that
SafeJBC_GivePlayerMoney(playerid,carsellprice\2);
As you see i added \2 and that will give you 50% of the car price you choose.
Hope it will work
Untested*
Replace it SafeJBC_GivePlayerMoney(playerid,carsellprice);
with that
SafeJBC_GivePlayerMoney(playerid,carsellprice\2);
As you see i added \2 and that will give you 50% of the car price you choose.
Hope it will work
Untested*