Antoxa39 Dance 80-90, mmm Nice) 22 Dance 80-90, mmm Nice) Posted March 19, 2022 · Report post [21:08:02 03/19/22] [ERROR] cache_get_field_content_int - invalid datatype в mysql_log при загрузке машины игрока вот загрузка: CMD:car(playerid) { new query[80 + MAX_PLAYER_NAME]; format(query,sizeof(query),"SELECT * FROM `veh` WHERE `vOwner` = '%s'",Player[playerid][pName]); mysql_function_query(dbHandle,query,true,"LoadUserVeh",""); } new bool:spawned[MAX_VEHICLES]; forward LoadUserVeh(playerid); public LoadUserVeh(playerid) { new rows,fields; cache_get_data(rows,fields); if(rows){ for(new i; i < rows; i++) { if(spawned[i] == true) return SCM(playerid,COLOR_RED,"stop"); spawned[i] = true; Veh[i][vID] = cache_get_field_content_int(0,"vID",dbHandle); Veh[i][vModel] = cache_get_field_content_int(0,"vModel",dbHandle); Veh[i][vColor1] = cache_get_field_content_int(0,"vColor1",dbHandle); cache_get_field_content(0,"vOwner",Veh[i][vOwner],dbHandle,24); Veh[i][vColor2] = cache_get_field_content_int(0,"vColor2",dbHandle); Veh[i][vDoor] = cache_get_field_content_int(0,"vDoor",dbHandle); Veh[i][fuel] = cache_get_field_content_int(0,"fuel",dbHandle); Veh[i][vx] = cache_get_field_content_float(0,"vx",dbHandle); Veh[i][vy] = cache_get_field_content_float(0,"vy",dbHandle); Veh[i][vz] = cache_get_field_content_float(0,"vz",dbHandle); veh1[i] = AddStaticVehicle(Veh[i][vModel],Veh[i][vx],Veh[i][vy],Veh[i][vz],0.0,0,Veh[i][vColor2]); SetVehicleParamsEx(i,false,false,false,Veh[i][vDoor],0,0,0); SetTimerEx("Fuel",5500,true,"i",playerid); } } else SCM(playerid,-1,"У вас нет личного ТС"); return 1; } бд https://yapx.ru/u/ROV6j 0 Share this post Link to post
0 Antoxa39 Dance 80-90, mmm Nice) 22 Dance 80-90, mmm Nice) Posted March 19, 2022 · Report post UPD:проблема решена,тему закрывайте) 0 Share this post Link to post
Antoxa39 Dance 80-90, mmm Nice) 22
[21:08:02 03/19/22] [ERROR] cache_get_field_content_int - invalid datatypeв mysql_log при загрузке машины игрока
вот загрузка:
бд https://yapx.ru/u/ROV6j
Share this post
Link to post