- Регистрация
- 30 Мар 2016
- Сообщения
- 197
- Лучшие ответы
- 3
- Репутация
- 15
Привет всем.
Помогите исправить ошибку в MYSQL. На днях хотел поставить систему мебели как на SGL RP (Не реклама)
Загрузка мебели ошибка.
вот MYSQL_LOG
Загрузка Мебели в OnGameModeInit
Помогите исправить ошибку в MYSQL. На днях хотел поставить систему мебели как на SGL RP (Не реклама)
Загрузка мебели ошибка.
вот MYSQL_LOG
PHP:
[12:58:43 02/16/19] [WARNING] cache_get_row_count - no active cache
[12:58:43 02/16/19] [ERROR] cache_delete - invalid connection handle (id: 1)
PHP:
cache = mysql_query(1,"SELECT * FROM `mebel`"), rows = cache_num_rows();
if(rows)
{
new Float:pos[4], model, home, type, number;
for(new he; he < rows; he++)
{
model = cache_get_field_content_int(he, "Model");
pos[0] = cache_get_field_content_float(he, "PosX");
pos[1] = cache_get_field_content_float(he, "PosY");
pos[2] = cache_get_field_content_float(he, "PosZ");
pos[3] = cache_get_field_content_float(he, "PosA");
home = cache_get_field_content_int(he, "House");
type = cache_get_field_content_int(he, "Type");
number = cache_get_field_content_int(he, "Number");
HouseMebel[home][type][number] = CreateDynamicObject(model,pos[0],pos[1],pos[2],0,0,pos[3],home+50);
}
printf("-> Мебель загружена <%i шт>", rows);
}
else print("-> Мебель не загружена");
cache_delete(cache);