MuffinMonster

Untitled

Feb 20th, 2016
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.38 KB | None | 0 0
  1. for(new i = 0; i < MAX_COMPLEXES; i++)
  2. {
  3. if(i < cache_get_row_count())
  4. {
  5. new comp = i + 1;
  6. ComplexInfo[comp][cID] = cache_get_field_content_int(i, "ID");
  7.  
  8. ComplexInfo[comp][cXo] = cache_get_field_content_float(i, "Xo");
  9. ComplexInfo[comp][cYo] = cache_get_field_content_float(i, "Yo");
  10. ComplexInfo[comp][cYo] = cache_get_field_content_float(i, "Zo");
  11. ComplexInfo[comp][cXi] = cache_get_field_content_float(i, "Xi");
  12. ComplexInfo[comp][cYi] = cache_get_field_content_float(i, "Yi");
  13. ComplexInfo[comp][cYi] = cache_get_field_content_float(i, "Zi");
  14.  
  15. ComplexInfo[comp][cIntIn] = cache_get_field_content_int(i, "IntIn");
  16. ComplexInfo[comp][cIntOut] = cache_get_field_content_int(i, "IntOut");
  17. ComplexInfo[comp][cVwIn] = cache_get_field_content_int(i, "VwIn");
  18. ComplexInfo[comp][cVwOut] = cache_get_field_content_int(i, "VwOut");
  19.  
  20. cache_get_field_content(i, "Name", ComplexInfo[comp][cName], handlesql, 70);
  21.  
  22. ComplexInfo[comp][cValue] = cache_get_field_content_int(i, "Value");
  23. ComplexInfo[comp][cOwned] = cache_get_field_content_int(i, "Owned");
  24.  
  25. cache_get_field_content(i, "Owner", ComplexInfo[comp][cOwner], handlesql, 128);
  26.  
  27. ComplexInfo[comp][cFreeze] = cache_get_field_content_int(i, "Freeze");
  28.  
  29. ComplexInfo[comp][cPickupO] = CreateDynamicPickup(1273, 1,
  30. ComplexInfo[comp][cXo], ComplexInfo[comp][cYo], ComplexInfo[comp][cZo],
  31. ComplexInfo[comp][cVwOut], ComplexInfo[comp][cIntOut], -1, 75);
  32.  
  33. ComplexInfo[comp][cPickupIn] = CreateDynamicPickup(1273, 1,
  34. ComplexInfo[comp][cXi], ComplexInfo[comp][cYi], ComplexInfo[comp][cZi],
  35. ComplexInfo[comp][cVwIn], ComplexInfo[comp][cIntIn], -1, 75);
  36.  
  37. ComplexInfo[comp][cTextOut] = CreateDynamic3DTextLabel(ComplexInfo[comp][cName], 0xFFFFFFFF,
  38. ComplexInfo[comp][cXo], ComplexInfo[comp][cYo], ComplexInfo[comp][cZo] + 0.5, 25.0,
  39. INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, ComplexInfo[comp][cVwOut], ComplexInfo[comp][cIntOut], -1, 25);
  40.  
  41. new exit_name[75];
  42. format(exit_name, sizeof(exit_name), "%s Exit", ComplexInfo[comp][cName]);
  43.  
  44. ComplexInfo[comp][cTextIn] = CreateDynamic3DTextLabel(exit_name, 0xFFFFFFFF,
  45. ComplexInfo[comp][cXi], ComplexInfo[comp][cYi], ComplexInfo[comp][cZi] + 0.5, 25.0,
  46. INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, ComplexInfo[comp][cVwIn], ComplexInfo[comp][cIntIn], -1, 25);
  47.  
  48. Iter_Add(CompIterator, comp);
  49. }
  50. }
Add Comment
Please, Sign In to add comment