19.02.2017, 12:54
hey guys i have this textdraw when i /buyvehicle and i try to buy a vehicle that is 18,000,000$ and i have only 2kk at me and i can buy it why what is wrong here ?
only 1 car isn't working , all of them have the right price
Код HTML:
if(playertextid == DSBuy) { if(DSModels[DealerID[playerid]][dPrice] > GetPlayerCash(playerid)) return SendClientMessage(playerid,COLOR_ERROR,"Tu nu ai suficienti bani pentru acest vehicul!"); if(DSModels[DealerID[playerid]][dStock] == 0) return SendClientMessage(playerid,COLOR_ERROR,"Acest vehicul nu se mai afla in stoc!"); if(PlayerInfo[playerid][pDrivingLic] <= 0) return SendClientMessage(playerid, COLOR_ERROR, "You don't have driving license."); vDBID[ VehicleDealer[playerid] ] = 0; DestroyVehicle(VehicleDealer[playerid]); InsertCar(playerid, DSModels[SelectedCar[playerid][DealerID[playerid]]][dModel]); TogglePlayerControllableEx(playerid, 1); SetCameraBehindPlayer(playerid); SetPlayerVirtualWorld(playerid,0); SetPlayerPos(playerid, 323.5197,-1519.8727,36.0391); CancelSelectTextDraw(playerid); HideDSTD(playerid); InDealer[playerid] = 0; }