Adidas_Dagestanec |
Дата: Понедельник, 09.05.2016, 21:04 | Сообщение # 1
|
Любитель
Сообщений: 48
Статус: Offline
|
Приветствую, не загружаются номера машин, в чем может быть проблема?
for(x = 0; x < r; x++) { CarInfo[playerid][carID][x] = cache_get_row_int(x,0, DATABASE); cache_get_row(x, 1, string, DATABASE, MAX_PLAYER_NAME); CarInfo[playerid][carModel][x] = cache_get_row_int(x,2, DATABASE); CarInfo[playerid][carNumber][x] = cache_get_row_int(x,3, DATABASE); CarInfo[playerid][carColor_one][x] = cache_get_row_int(x,4, DATABASE); CarInfo[playerid][carColor_two][x] = cache_get_row_int(x,5, DATABASE); CarInfo[playerid][carPercent][x] = cache_get_row_int(x,6, DATABASE); CarInfo[playerid][carFuel][x] = cache_get_row_float(x,7, DATABASE); CarInfo[playerid][carVehcom_1][x] = cache_get_row_int(x,8, DATABASE); CarInfo[playerid][carVehcom_2][x] = cache_get_row_int(x,9, DATABASE); CarInfo[playerid][carVehcom_3][x] = cache_get_row_int(x,10, DATABASE); CarInfo[playerid][carVehcom_4][x] = cache_get_row_int(x,11, DATABASE); CarInfo[playerid][carVehcom_5][x] = cache_get_row_int(x,12, DATABASE); CarInfo[playerid][carVehcom_6][x] = cache_get_row_int(x,13, DATABASE); CarInfo[playerid][carVehcom_7][x] = cache_get_row_int(x,14, DATABASE); CarInfo[playerid][carVehcom_8][x] = cache_get_row_int(x,15, DATABASE); CarInfo[playerid][carVehcom_9][x] = cache_get_row_int(x,16, DATABASE); CarInfo[playerid][carVehcom_10][x] = cache_get_row_int(x,17, DATABASE); CarInfo[playerid][carVehcom_11][x] = cache_get_row_int(x,18, DATABASE); CarInfo[playerid][carVehcom_12][x] = cache_get_row_int(x,19, DATABASE); CarInfo[playerid][carVehcom_13][x] = cache_get_row_int(x,20, DATABASE); CarInfo[playerid][carVehcom_14][x] = cache_get_row_int(x,21, DATABASE); } case 10: { mysql_format(DATABASE, QUERY, sizeof(QUERY), "UPDATE `"TABLE_CARS"` SET "); format(temp,sizeof(temp),"`model`= '%i',",CarInfo[i][carModel][0]), strcat(QUERY,temp,sizeof(QUERY)); format(temp,sizeof(temp),"`number`= '%i',",CarInfo[i][carNumber][0]), strcat(QUERY,temp,sizeof(QUERY)); format(temp,sizeof(temp),"`color_one`= '%i',",CarInfo[i][carColor_one][0]), strcat(QUERY,temp,sizeof(QUERY)); format(temp,sizeof(temp),"`color_two`= '%i',",CarInfo[i][carColor_two][0]), strcat(QUERY,temp,sizeof(QUERY)); format(temp,sizeof(temp),"`percent`= '%i',",CarInfo[i][carPercent][0]), strcat(QUERY,temp,sizeof(QUERY)); format(temp,sizeof(temp),"`fuel`= '%f',",CarInfo[i][carFuel][0]), strcat(QUERY,temp,sizeof(QUERY)); format(temp,sizeof(temp),"`vehcom_1`= '%i',",CarInfo[i][carVehcom_1][0]), strcat(QUERY,temp,sizeof(QUERY)); format(temp,sizeof(temp),"`vehcom_2`= '%i',",CarInfo[i][carVehcom_2][0]), strcat(QUERY,temp,sizeof(QUERY)); format(temp,sizeof(temp),"`vehcom_3`= '%i',",CarInfo[i][carVehcom_3][0]), strcat(QUERY,temp,sizeof(QUERY)); format(temp,sizeof(temp),"`vehcom_4`= '%i',",CarInfo[i][carVehcom_4][0]), strcat(QUERY,temp,sizeof(QUERY)); format(temp,sizeof(temp),"`vehcom_5`= '%i',",CarInfo[i][carVehcom_5][0]), strcat(QUERY,temp,sizeof(QUERY)); format(temp,sizeof(temp),"`vehcom_6`= '%i',",CarInfo[i][carVehcom_6][0]), strcat(QUERY,temp,sizeof(QUERY)); format(temp,sizeof(temp),"`vehcom_7`= '%i',",CarInfo[i][carVehcom_7][0]), strcat(QUERY,temp,sizeof(QUERY)); format(temp,sizeof(temp),"`vehcom_8`= '%i',",CarInfo[i][carVehcom_8][0]), strcat(QUERY,temp,sizeof(QUERY)); format(temp,sizeof(temp),"`vehcom_9`= '%i',",CarInfo[i][carVehcom_9][0]), strcat(QUERY,temp,sizeof(QUERY)); format(temp,sizeof(temp),"`vehcom_10`= '%i',",CarInfo[i][carVehcom_10][0]), strcat(QUERY,temp,sizeof(QUERY)); format(temp,sizeof(temp),"`vehcom_11`= '%i',",CarInfo[i][carVehcom_11][0]), strcat(QUERY,temp,sizeof(QUERY)); format(temp,sizeof(temp),"`vehcom_12`= '%i',",CarInfo[i][carVehcom_12][0]), strcat(QUERY,temp,sizeof(QUERY)); format(temp,sizeof(temp),"`vehcom_13`= '%i',",CarInfo[i][carVehcom_13][0]), strcat(QUERY,temp,sizeof(QUERY)); format(temp,sizeof(temp),"`vehcom_14`= '%i'",CarInfo[i][carVehcom_14][0]), strcat(QUERY,temp,sizeof(QUERY)); format(temp,sizeof(temp)," WHERE id = '%i'",CarInfo[i][carID][0]), strcat(QUERY,temp,sizeof(QUERY)); mysql_function_query(DATABASE, QUERY, true, "", ""); } stock LoadTuning(c,carid) { if(CarInfo[c][carVehcom_1][0]!=0) AddVehicleComponent(carid, CarInfo[c][carVehcom_1][0]); if(CarInfo[c][carVehcom_2][0]!=0) AddVehicleComponent(carid, CarInfo[c][carVehcom_2][0]); if(CarInfo[c][carVehcom_3][0]!=0) AddVehicleComponent(carid, CarInfo[c][carVehcom_3][0]); if(CarInfo[c][carVehcom_4][0]!=0) AddVehicleComponent(carid, CarInfo[c][carVehcom_4][0]); if(CarInfo[c][carVehcom_5][0]!=0) AddVehicleComponent(carid, CarInfo[c][carVehcom_5][0]); if(CarInfo[c][carVehcom_6][0]!=0) AddVehicleComponent(carid, CarInfo[c][carVehcom_6][0]); if(CarInfo[c][carVehcom_7][0]!=0) AddVehicleComponent(carid, CarInfo[c][carVehcom_7][0]); if(CarInfo[c][carVehcom_8][0]!=0) AddVehicleComponent(carid, CarInfo[c][carVehcom_8][0]); if(CarInfo[c][carVehcom_9][0]!=0) AddVehicleComponent(carid, CarInfo[c][carVehcom_9][0]); if(CarInfo[c][carVehcom_10][0]!=0) AddVehicleComponent(carid, CarInfo[c][carVehcom_10][0]); if(CarInfo[c][carVehcom_11][0]!=0) AddVehicleComponent(carid, CarInfo[c][carVehcom_11][0]); if(CarInfo[c][carVehcom_12][0]!=0) AddVehicleComponent(carid, CarInfo[c][carVehcom_12][0]); if(CarInfo[c][carVehcom_13][0]!=0) AddVehicleComponent(carid, CarInfo[c][carVehcom_13][0]); if(CarInfo[c][carVehcom_14][0]!=0) AddVehicleComponent(carid, CarInfo[c][carVehcom_14][0]); SetVehicleNumberPlate(carid, CarInfo[c][carNumber][0]); }Добавлено (09.05.2016, 21:04) --------------------------------------------- upd.
|
|
|
|
Din_Winchester |
Дата: Понедельник, 19.12.2016, 22:33 | Сообщение # 2
|
VIP
Сообщений: 103
Статус: Offline
|
CarInfo[playerid][carID][x] = cache_get_row_int(x,0, DATABASE); cache_get_row(x, 1, string, DATABASE, MAX_PLAYER_NAME); CarInfo[playerid][carModel][x] = cache_get_row_int(x,2, DATABASE); CarInfo[playerid][carNumber][x] = cache_get_row_int(x,3, DATABASE); CarInfo[playerid][carColor_one][x] = cache_get_row_int(x,4, DATABASE); CarInfo[playerid][carColor_two][x] = cache_get_row_int(x,5, DATABASE); CarInfo[playerid][carPercent][x] = cache_get_row_int(x,6, DATABASE); CarInfo[playerid][carFuel][x] = cache_get_row_float(x,7, DATABASE); CarInfo[playerid][carVehcom_1][x] = cache_get_row_int(x,8, DATABASE); CarInfo[playerid][carVehcom_2][x] = cache_get_row_int(x,9, DATABASE); CarInfo[playerid][carVehcom_3][x] = cache_get_row_int(x,10, DATABASE); CarInfo[playerid][carVehcom_4][x] = cache_get_row_int(x,11, DATABASE); CarInfo[playerid][carVehcom_5][x] = cache_get_row_int(x,12, DATABASE); CarInfo[playerid][carVehcom_6][x] = cache_get_row_int(x,13, DATABASE); CarInfo[playerid][carVehcom_7][x] = cache_get_row_int(x,14, DATABASE); CarInfo[playerid][carVehcom_8][x] = cache_get_row_int(x,15, DATABASE); CarInfo[playerid][carVehcom_9][x] = cache_get_row_int(x,16, DATABASE); CarInfo[playerid][carVehcom_10][x] = cache_get_row_int(x,17, DATABASE); CarInfo[playerid][carVehcom_11][x] = cache_get_row_int(x,18, DATABASE); CarInfo[playerid][carVehcom_15][x] = cache__get_row_int(x,19, DATABASE); CarInfo[playerid][carVehcom_13][x] = cache_get_row_int(x,20, DATABASE); CarInfo[playerid][carVehcom_14][x] = cache_get_row_int(x,21, DATABASE); } Написал,сделай также должно помочь
222
|
|
|
|