Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void LoadPropertyObjects()
- {
- new rows = 0;
- cache_get_row_count(rows);
- for(new i = 0, end = (rows <= MAX_PROPERTY_OBJECTS) ? (rows) : (MAX_PROPERTY_OBJECTS); i < end; i++)
- {
- cache_get_value_index_int(i, 0, PropertyObject[i][po_uid]);
- cache_get_value_index_int(i, 1, PropertyObject[i][po_type]);
- cache_get_value_index_int(i, 2, PropertyObject[i][po_type_id]);
- cache_get_value_index_int(i, 3, PropertyObject[i][po_type_slot]);
- cache_get_value_index_int(i, 4, PropertyObject[i][po_item]);
- cache_get_value_index_float(i, 5, PropertyObject[i][po_pos][0]);
- cache_get_value_index_float(i, 6, PropertyObject[i][po_pos][1]);
- cache_get_value_index_float(i, 7, PropertyObject[i][po_pos][2]);
- cache_get_value_index_float(i, 8, PropertyObject[i][po_pos][3]);
- cache_get_value_index_float(i, 9, PropertyObject[i][po_pos][4]);
- cache_get_value_index_float(i, 10, PropertyObject[i][po_pos][5]);
- cache_get_value_index_int(i, 11, PropertyObject[i][po_create_owner_uid]);
- cache_get_value_index(i, 12, PropertyObject[i][po_create_owner_name]);
- cache_get_value_index(i, 13, PropertyObject[i][po_create_date]);
- cache_get_value_index_int(i, 14, PropertyObject[i][po_vw]);
- cache_get_value_index_int(i, 15, PropertyObject[i][po_int]);
- PropertyObject[i][po_objectid] = CreateDynamicObject(ITEM_INFO[PropertyObject[i][po_item]][MODEL],
- PropertyObject[i][po_pos][0], PropertyObject[i][po_pos][1], PropertyObject[i][po_pos][2],
- PropertyObject[i][po_pos][3], PropertyObject[i][po_pos][4], PropertyObject[i][po_pos][5],
- .worldid = PropertyObject[i][po_vw],
- .interiorid = PropertyObject[i][po_int]);
- if(PropertyObject[i][po_type] == 0)
- {
- HouseInfo[PropertyObject[i][po_type_id]][hPropObject][PropertyObject[i][po_type_slot]] = i;
- if(PropertyObject[i][po_vw] == 0 && PropertyObject[i][po_int] == 0) {
- HouseInfo[PropertyObject[i][po_type_id]][hPropObjectCount][0]++;
- }
- else {
- HouseInfo[PropertyObject[i][po_type_id]][hPropObjectCount][1]++;
- }
- }
- else if(PropertyObject[i][po_type] == 1)
- {
- BizInfo[PropertyObject[i][po_type_id]][bPropObject][PropertyObject[i][po_type_slot]] = i;
- if(PropertyObject[i][po_vw] == 0 && PropertyObject[i][po_int] == 0) {
- BizInfo[PropertyObject[i][po_type_id]][bPropObjectCount][0]++;
- }
- else {
- BizInfo[PropertyObject[i][po_type_id]][bPropObjectCount][1]++;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement