stock LoadOwnableCars()
{
new Cache:result = mysql_query(mysql, "SELECT * FROM `ownable`");
OWNABLECARS = cache_get_row_count(mysql);
for(new idx = 0;idx < OWNABLECARS; idx++)
{
CarInfo[idx][cID] = cache_get_row_int(idx, 0, mysql);
CarInfo[idx][cModel] = cache_get_row_int(idx, 1, mysql);
CarInfo[idx][cSell_X] = cache_get_row_float(idx, 2, mysql);
CarInfo[idx][cSell_Y] = cache_get_row_float(idx, 3, mysql);
CarInfo[idx][cSell_Z] = cache_get_row_float(idx, 4, mysql);
CarInfo[idx][cSell_A] = cache_get_row_float(idx, 5, mysql);
CarInfo[idx][cPos_X] = cache_get_row_float(idx, 6, mysql);
CarInfo[idx][cPos_Y] = cache_get_row_float(idx, 7, mysql);
CarInfo[idx][cPos_Z] = cache_get_row_float(idx, 8, mysql);
CarInfo[idx][cPos_A] = cache_get_row_float(idx, 9, mysql);
CarInfo[idx][cColor_1] = cache_get_row_int(idx, 10, mysql);
CarInfo[idx][cColor_2] = cache_get_row_int(idx, 11, mysql);
cache_get_row(idx, 12, CarInfo[idx][cOwner], mysql, 24);
cache_get_row(idx, 13, CarInfo[idx][cKeyer], mysql, 24);
CarInfo[idx][cShtrafer] = cache_get_row_int(idx, 14, mysql);
cache_get_row(idx, 15, CarInfo[idx][cNumber], mysql, 30);
CarInfo[idx][cCost] = cache_get_row_int(idx, 16, mysql);
CarInfo[idx][cLock] = cache_get_row_int(idx, 17, mysql);
CarInfo[idx][cShtraf] = cache_get_row_int(idx, 18, mysql);
CarInfo[idx][cKeyIN] = cache_get_row_int(idx, 19, mysql);
CarInfo[idx][cAlarmON] = cache_get_row_int(idx, 20, mysql);
CarInfo[idx][cMilage] = cache_get_row_float(idx, 21, mysql);
TrunkInfo[idx+1][tMats] = cache_get_row_int(idx, 22, mysql);
TrunkInfo[idx+1][tDrugs] = cache_get_row_int(idx, 23, mysql);
TrunkInfo[idx+1][tArmours] = cache_get_row_int(idx, 24, mysql);
TrunkInfo[idx+1][tPackets] = cache_get_row_int(idx, 25, mysql);
TrunkInfo[idx+1][tHeal] = cache_get_row_int(idx, 26, mysql);
TrunkInfo[idx+1][tKanistra] = cache_get_row_int(idx, 27, mysql);
TrunkInfo[idx+1][tDee] = cache_get_row_int(idx, 28, mysql);
CarInfo[idx+1][cTwinTurbo] = cache_get_row_int(idx, 29, mysql);
CarInfo[idx+1][cSupreme] = cache_get_row_int(idx, 30, mysql);
CarInfo[idx+1][cStyle] = cache_get_row_int(idx, 31, mysql);
CarInfo[idx][cVirtualWorld] = cache_get_row_int(idx, 32, mysql);
CarInfo[idx][cInterior] = cache_get_row_int(idx, 33, mysql);
CarInfo[idx][cParkedInGarage] = cache_get_row_int(idx, 34, mysql);
CarInfo[idx][cParkedInParking] = cache_get_row_int(idx, 35, mysql);
cache_get_row(idx, 36, CarInfo[idx][cShtrafName], mysql, MAX_PLAYER_NAME);
CarInfo[idx+1][cRukzak] = cache_get_row_int(idx, 37, mysql);
CarInfo[idx+1][cCherep] = cache_get_row_int(idx, 38, mysql);
CarInfo[idx+1][cKrylya] = cache_get_row_int(idx, 39, mysql);
}
cache_delete(result, mysql);
return 1;
}