Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- publics: LoadPlantsCallBack()
- {
- if(!cache_num_rows())
- {
- printf("-> Не удалось загрузить кусты");
- return true;
- }
- for(new i=0; i < cache_num_rows(); i++) {
- PlantInfo[i][plant_id] = cache_get_field_content_int(i, "id");
- PlantInfo[i][plant_status] = cache_get_field_content_int(i, "item_id");
- PlantInfo[i][plant_prog] = cache_get_field_content_int(i, "item_quantity");
- PlantInfo[i][plant_owner] = cache_get_field_content_int(i, "dropped_by");
- PlantInfo[i][plant_pos][0] = cache_get_field_content_float(i, "pos_x");
- PlantInfo[i][plant_pos][1] = cache_get_field_content_float(i, "pos_y");
- PlantInfo[i][plant_pos][2] = cache_get_field_content_float(i, "pos_z");
- PlantInfo[i][plant_vw] = cache_get_field_content_int(i, "vw");
- PlantInfo[i][plant_int] = cache_get_field_content_int(i, "int");
- PlantInfo[i][plant_obj_id] = CreateDynamicObject(19473, PlantInfo[i][plant_pos][0], PlantInfo[i][plant_pos][1], PlantInfo[i][plant_pos][2]-1.2, 0.0, 0.0, 0.0, PlantInfo[i][plant_vw], PlantInfo[i][plant_int], -1, 150);
- CreatePlant3DText(i);
- }
- printf("-> Кустов загружено: %d", cache_num_rows());
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement