PlayerInfo[playerid][pFuelcar] = cache_get_field_content_float(0, "Fuelcar");
if(PlayerInfo[playerid][pPhousekey] != 255)
{
new house = PlayerInfo[playerid][pPhousekey];
createdcar = caridhouse[playerid];
caridhouse[playerid] = CreateVehicle(PlayerInfo[playerid][pCar], HouseInfo[house][hCarx], HouseInfo[house][hCary], HouseInfo[house][hCarz], HouseInfo[house][hCarc], PlayerInfo[playerid][pColor], PlayerInfo[playerid][pColor1], 5000);
createdcar++;
LockCar(caridhouse[playerid]); IsLocked[caridhouse[playerid]] = 1;
Liight[caridhouse[playerid]] = false; Bonnnet[caridhouse[playerid]] = false; Booot[caridhouse[playerid]] = false; Dveri[caridhouse[playerid]] = false; EngineState[caridhouse[playerid]] = false; AnRepairVehicle(caridhouse[playerid]); LoadTuning(playerid,caridhouse[playerid]);
}
stock LoadTuning(playerid,vehicleid)
{
Fuell[vehicleid] = PlayerInfo[playerid][pFuelcar];
AddVehicleComponent(vehicleid, PlayerInfo[playerid][pWheels]);
AddVehicleComponent(vehicleid, PlayerInfo[playerid][pNitro]);
AddVehicleComponent(vehicleid, PlayerInfo[playerid][pHydrawlic]);
AddVehicleComponent(vehicleid, PlayerInfo[playerid][pJubka]);
if(PJ(caridhouse[playerid]))
{
ChangeVehiclePaintjob(vehicleid, PlayerInfo[playerid][pPaintJob]);
AddVehicleComponent(vehicleid, PlayerInfo[playerid][pSpoiler]);
AddVehicleComponent(vehicleid, PlayerInfo[playerid][pBumper1]);
AddVehicleComponent(vehicleid, PlayerInfo[playerid][pBumper2]);
AddVehicleComponent(vehicleid, PlayerInfo[playerid][pVozduh]);
AddVehicleComponent(vehicleid, PlayerInfo[playerid][pVihlop]);
}
return true;
}
SELECT Model, Fuelcar + 0 FROM table WHERE 1
Сменить тип переменной на float. - Оно стоит в Float.
Не помогло ... |
А теперь если внимательно читать мои сообщения то станет очевидно что это нужно было сделать в базе данных. На раз проблема решена то уже не имеет значения.
|