Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for(new i = 0; i < MAX_COMPLEXES; i++)
- {
- if(i < cache_get_row_count())
- {
- new comp = i + 1;
- ComplexInfo[comp][cID] = cache_get_field_content_int(i, "ID");
- ComplexInfo[comp][cXo] = cache_get_field_content_float(i, "Xo");
- ComplexInfo[comp][cYo] = cache_get_field_content_float(i, "Yo");
- ComplexInfo[comp][cYo] = cache_get_field_content_float(i, "Zo");
- ComplexInfo[comp][cXi] = cache_get_field_content_float(i, "Xi");
- ComplexInfo[comp][cYi] = cache_get_field_content_float(i, "Yi");
- ComplexInfo[comp][cYi] = cache_get_field_content_float(i, "Zi");
- ComplexInfo[comp][cIntIn] = cache_get_field_content_int(i, "IntIn");
- ComplexInfo[comp][cIntOut] = cache_get_field_content_int(i, "IntOut");
- ComplexInfo[comp][cVwIn] = cache_get_field_content_int(i, "VwIn");
- ComplexInfo[comp][cVwOut] = cache_get_field_content_int(i, "VwOut");
- cache_get_field_content(i, "Name", ComplexInfo[comp][cName], handlesql, 70);
- ComplexInfo[comp][cValue] = cache_get_field_content_int(i, "Value");
- ComplexInfo[comp][cOwned] = cache_get_field_content_int(i, "Owned");
- cache_get_field_content(i, "Owner", ComplexInfo[comp][cOwner], handlesql, 128);
- ComplexInfo[comp][cFreeze] = cache_get_field_content_int(i, "Freeze");
- ComplexInfo[comp][cPickupO] = CreateDynamicPickup(1273, 1,
- ComplexInfo[comp][cXo], ComplexInfo[comp][cYo], ComplexInfo[comp][cZo],
- ComplexInfo[comp][cVwOut], ComplexInfo[comp][cIntOut], -1, 75);
- ComplexInfo[comp][cPickupIn] = CreateDynamicPickup(1273, 1,
- ComplexInfo[comp][cXi], ComplexInfo[comp][cYi], ComplexInfo[comp][cZi],
- ComplexInfo[comp][cVwIn], ComplexInfo[comp][cIntIn], -1, 75);
- ComplexInfo[comp][cTextOut] = CreateDynamic3DTextLabel(ComplexInfo[comp][cName], 0xFFFFFFFF,
- ComplexInfo[comp][cXo], ComplexInfo[comp][cYo], ComplexInfo[comp][cZo] + 0.5, 25.0,
- INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, ComplexInfo[comp][cVwOut], ComplexInfo[comp][cIntOut], -1, 25);
- new exit_name[75];
- format(exit_name, sizeof(exit_name), "%s Exit", ComplexInfo[comp][cName]);
- ComplexInfo[comp][cTextIn] = CreateDynamic3DTextLabel(exit_name, 0xFFFFFFFF,
- ComplexInfo[comp][cXi], ComplexInfo[comp][cYi], ComplexInfo[comp][cZi] + 0.5, 25.0,
- INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, ComplexInfo[comp][cVwIn], ComplexInfo[comp][cIntIn], -1, 25);
- Iter_Add(CompIterator, comp);
- }
- }
Add Comment
Please, Sign In to add comment