| Adidas_Dagestanec |
Дата: Четверг, 28.04.2016, 22:35 | Сообщение # 1
|
Любитель
Сообщений: 48
Статус: Offline
|
Не загружается тюнинг, в БД сохраняется...
[12:32:04] [WARNING] CMySQLQuery::Execute[OnMySQL_QUERY(iis)] - lost connection, reconnecting.. [12:32:04] [WARNING] CMySQLQuery::Execute[OnMySQL_QUERY(iis)] - lost connection, reconnecting.. [12:35:04] [WARNING] CMySQLHandle::Create - connection already exists [12:41:13] [WARNING] CMySQLHandle::Create - connection already exists [12:44:18] [WARNING] CMySQLHandle::Create - connection already exists [12:54:22] [WARNING] CMySQLHandle::Create - connection already exists [12:58:12] [WARNING] CMySQLHandle::Create - connection already exists [16:52:26] [WARNING] CMySQLHandle::Create - connection already exists [11:41:34] [WARNING] CMySQLResult::GetRowDataByName() - invalid row index ('0') [11:41:34] [WARNING] CMySQLResult::GetRowDataByName() - invalid row index ('0') [11:41:34] [ERROR] cache_get_field_content_int - invalid data type [22:58:47] [WARNING] CMySQLHandle::Create - connection already exists [23:06:40] [WARNING] CMySQLHandle::Create - connection already exists [23:19:40] [WARNING] CMySQLHandle::Create - connection already exists [23:32:06] [WARNING] CMySQLHandle::Create - connection already exists [23:35:05] [ERROR] CMySQLHandle::Connect - (error #2003) Can't connect to MySQL server on 'localhost' (10061) [23:35:05] [ERROR] CMySQLQuery::Execute[()] - (error #2006) MySQL server has gone away [23:35:05] [ERROR] CMySQLQuery::Execute[()] - (error #2006) MySQL server has gone away [23:35:05] [WARNING] CMySQLQuery::Execute[()] - lost connection, reconnecting.. [23:35:05] [WARNING] CMySQLQuery::Execute[()] - lost connection, reconnecting.. [23:35:07] [ERROR] CMySQLHandle::Connect - (error #2003) Can't connect to MySQL server on 'localhost' (10061) [23:35:08] [ERROR] CMySQLHandle::Connect - (error #2003) Can't connect to MySQL server on 'localhost' (10061) [23:35:08] [ERROR] CMySQLQuery::Execute[OnMySQL_QUERY(iis)] - (error #2006) MySQL server has gone away [23:35:08] [ERROR] CMySQLQuery::Execute[OnMySQL_QUERY(iis)] - (error #2006) MySQL server has gone away [23:35:08] [WARNING] CMySQLQuery::Execute[OnMySQL_QUERY(iis)] - lost connection, reconnecting.. [23:35:08] [WARNING] CMySQLQuery::Execute[OnMySQL_QUERY(iis)] - lost connection, reconnecting.. [23:35:09] [ERROR] CMySQLHandle::Connect - (error #2003) Can't connect to MySQL server on 'localhost' (10061) [23:35:10] [ERROR] CMySQLHandle::Connect - (error #2003) Can't connect to MySQL server on 'localhost' (10061) [23:35:10] [ERROR] CMySQLQuery::Execute[OnMySQL_QUERY(iis)] - (error #2006) MySQL server has gone away [23:35:10] [WARNING] CMySQLQuery::Execute[OnMySQL_QUERY(iis)] - lost connection, reconnecting.. [23:35:10] [WARNING] CMySQLQuery::Execute[OnMySQL_QUERY(iis)] - lost connection, reconnecting.. [23:35:11] [ERROR] CMySQLHandle::Connect - (error #2003) Can't connect to MySQL server on 'localhost' (10061) [23:35:14] [ERROR] CMySQLHandle::Connect - (error #2003) Can't connect to MySQL server on 'localhost' (10061) [23:35:14] [ERROR] CMySQLQuery::Execute[()] - (error #2006) MySQL server has gone away [23:35:14] [ERROR] CMySQLQuery::Execute[()] - (error #2006) MySQL server has gone away [23:35:14] [WARNING] CMySQLQuery::Execute[()] - lost connection, reconnecting.. [23:51:49] [WARNING] CMySQLHandle::Create - connection already exists [00:09:13] [WARNING] CMySQLHandle::Create - connection already exists [00:16:47] [WARNING] CMySQLHandle::Create - connection already exists [00:31:52] [WARNING] CMySQLHandle::Create - connection already exists [00:41:19] [WARNING] CMySQLHandle::Create - connection already exists [00:49:41] [WARNING] CMySQLHandle::Create - connection already exists [00:59:49] [WARNING] CMySQLHandle::Create - connection already exists [01:21:37] [WARNING] CMySQLHandle::Create - connection already exists [01:34:15] [WARNING] CMySQLHandle::Create - connection already exists [02:14:39] [WARNING] CMySQLHandle::Create - connection already exists [02:43:50] [WARNING] CMySQLHandle::Create - connection already exists [02:56:17] [WARNING] CMySQLHandle::Create - connection already exists [03:04:03] [WARNING] CMySQLHandle::Create - connection already exists [11:06:01] [WARNING] CMySQLHandle::Create - connection already exists [11:21:09] [WARNING] CMySQLHandle::Create - connection already exists [12:12:47] [WARNING] CMySQLHandle::Create - connection already exists [12:19:15] [WARNING] CMySQLHandle::Create - connection already exists [12:24:25] [WARNING] CMySQLHandle::Create - connection already exists [12:39:37] [WARNING] CMySQLHandle::Create - connection already exists [12:41:48] [WARNING] CMySQLHandle::Create - connection already exists [12:54:26] [WARNING] CMySQLHandle::Create - connection already exists [13:02:06] [WARNING] CMySQLHandle::Create - connection already exists [13:11:19] [WARNING] CMySQLHandle::Create - connection already exists
//*** 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]); } //*** 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),"`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, "", ""); //****
|
|
|
|
|
| Adidas_Dagestanec |
Дата: Четверг, 28.04.2016, 23:30 | Сообщение # 4
|
Любитель
Сообщений: 48
Статус: Offline
|
{ if(!r) { mysql_format(DATABASE, QUERY, sizeof(QUERY), "INSERT INTO `"TABLE_CARS"` (`owner`) VALUES ('%s')" ,PTEMP[playerid][pName]); mysql_function_query(DATABASE,QUERY,true,"LoadPlayerCar","i",playerid); return true; } 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][carColor_one][x] = cache_get_row_int(x,3, DATABASE); CarInfo[playerid][carColor_two][x] = cache_get_row_int(x,4, DATABASE); CarInfo[playerid][carPercent][x] = cache_get_row_int(x,5, DATABASE); CarInfo[playerid][carFuel][x] = cache_get_row_float(x,6, DATABASE); CarInfo[playerid][carVehcom_1][x] = cache_get_row_int(x,7, DATABASE); CarInfo[playerid][carVehcom_2][x] = cache_get_row_int(x,8, DATABASE); CarInfo[playerid][carVehcom_3][x] = cache_get_row_int(x,9, DATABASE); CarInfo[playerid][carVehcom_4][x] = cache_get_row_int(x,10, DATABASE); CarInfo[playerid][carVehcom_5][x] = cache_get_row_int(x,11, DATABASE); CarInfo[playerid][carVehcom_6][x] = cache_get_row_int(x,12, DATABASE); CarInfo[playerid][carVehcom_7][x] = cache_get_row_int(x,13, DATABASE); CarInfo[playerid][carVehcom_8][x] = cache_get_row_int(x,14, DATABASE); CarInfo[playerid][carVehcom_9][x] = cache_get_row_int(x,15, DATABASE); CarInfo[playerid][carVehcom_10][x] = cache_get_row_int(x,16, DATABASE); CarInfo[playerid][carVehcom_11][x] = cache_get_row_int(x,17, DATABASE); CarInfo[playerid][carVehcom_12][x] = cache_get_row_int(x,18, DATABASE); CarInfo[playerid][carVehcom_13][x] = cache_get_row_int(x,19, DATABASE); CarInfo[playerid][carVehcom_14][x] = cache_get_row_int(x,20, DATABASE); } if(HGet(playerid) != 0) { new house = GetPVarInt(playerid,"House"); createdcar = house_car[playerid]; if(HouseInfo[house][hGarage]) { house_car[playerid] = CreateVehicle(CarInfo[playerid][carModel][0], 235.1174,1657.0660,189.1593,179.5079, CarInfo[playerid][carColor_one][0] ,CarInfo[playerid][carColor_two][0], 86400); SetVehicleVirtualWorld(house_car[playerid],house+50); LinkVehicleToInterior(house_car[playerid],1); } else { house_car[playerid] = CreateVehicle(CarInfo[playerid][carModel][0], HouseInfo[house][hCarx], HouseInfo[house][hCary], HouseInfo[house][hCarz], HouseInfo[house][hCarc] , CarInfo[playerid][carColor_one][0] ,CarInfo[playerid][carColor_two][0], 86400); } SetVehicleParamsEx(house_car[playerid],false,false,false,true,false,false,false); CarHealth[house_car[playerid]] = float(1000); createdcar ++; Fuell[house_car[playerid]] = CarInfo[playerid][carFuel][0]; LoadTuning(playerid,house_car[playerid]); } printf("[Загрузка ...] Автомобили игрока %s были загружены!",string); }Добавлено (28.04.2016, 23:30) --------------------------------------------- К моду подключается, мб это старые логи.
|
|
|
|
|