Kem4ik
Умник
При запуске сервера пишет: "[Обьекты] Не удалось загрузить обьекты!".
Как можно решить данную проблемы.
Прикрепил паблик, может быть в нём дело.
Как можно решить данную проблемы.
Прикрепил паблик, может быть в нём дело.
PHP:
publics: LoadDItems() {
if(!cache_num_rows()) {
printf("[Обьекты] Не удалось загрузить обьекты!");
return true;
}
for(new i=0; i < cache_num_rows(); i++) {
DItems[i][dr_id] = cache_get_field_content_int(i, "id");
DItems[i][dr_type] = cache_get_field_content_int(i, "storage_type");
DItems[i][dr_item_id] = cache_get_field_content_int(i, "item_id");
DItems[i][dr_quantity] = cache_get_field_content_int(i, "item_quantity");
DItems[i][dr_time] = cache_get_field_content_int(i, "drop_time");
DItems[i][dr_by] = cache_get_field_content_int(i, "dropped_by");
DItems[i][dr_obj] = cache_get_field_content_int(i, "obj");
DItems[i][dr_x] = cache_get_field_content_float(i, "pos_x");
DItems[i][dr_y] = cache_get_field_content_float(i, "pos_y");
DItems[i][dr_z] = cache_get_field_content_float(i, "pos_z");
DItems[i][dr_rx] = cache_get_field_content_float(i, "pos_rx");
DItems[i][dr_ry] = cache_get_field_content_float(i, "pos_ry");
DItems[i][dr_rz] = cache_get_field_content_float(i, "pos_rz");
DItems[i][dr_a] = cache_get_field_content_float(i, "pos_a");
DItems[i][dr_vw] = cache_get_field_content_int(i, "vw");
DItems[i][dr_int] = cache_get_field_content_int(i, "int");
DItems[i][dr_object] = CreateDynamicObject(DItems[i][dr_obj], DItems[i][dr_x], DItems[i][dr_y], DItems[i][dr_z], DItems[i][dr_rx], DItems[i][dr_ry], DItems[i][dr_rz], DItems[i][dr_vw], DItems[i][dr_int], -1);
}
printf("[Обьекты]: %d обьектов успешно загружено.", cache_num_rows());
return true;
}
