Advertisement
Guest User

Untitled

a guest
Aug 23rd, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. @LoadCAR();
  2. @LoadCAR()
  3. {
  4. new rows, id_veh;
  5. cache_get_row_count(rows);
  6. if(rows)
  7. {
  8. for(new i; i < rows; i++)
  9. {
  10. cache_get_value_index_int(i, 1, VehicleInfo[TOTALVEH+1][vModel]);
  11. cache_get_value_index_int(i, 2, VehicleInfo[TOTALVEH+1][vColor1]);
  12. cache_get_value_index_int(i, 3, VehicleInfo[TOTALVEH+1][vColor2]);
  13. cache_get_value_index_float(i, 4, VehicleInfo[TOTALVEH+1][vX]);
  14. cache_get_value_index_float(i, 5, VehicleInfo[TOTALVEH+1][vY]);
  15. cache_get_value_index_float(i, 6, VehicleInfo[TOTALVEH+1][vZ]);
  16. cache_get_value_index_float(i, 7, VehicleInfo[TOTALVEH+1][vA]);
  17. cache_get_value_index_int(i, 8, VehicleInfo[TOTALVEH+1][vFrac]);
  18. cache_get_value_index_int(i, 9, VehicleInfo[TOTALVEH+1][vJob]);
  19. cache_get_value_index_int(i, 10, VehicleInfo[TOTALVEH+1][vSpawnDelay]);
  20. id_veh = AddTeamVehicle(VehicleInfo[TOTALVEH+1][vFrac], VehicleInfo[TOTALVEH+1][vJob], VehicleInfo[TOTALVEH+1][vModel], VehicleInfo[TOTALVEH+1][vX], VehicleInfo[TOTALVEH+1][vY], VehicleInfo[TOTALVEH+1][vZ], VehicleInfo[TOTALVEH+1][vA], VehicleInfo[TOTALVEH+1][vColor1], VehicleInfo[TOTALVEH+1][vColor2], VehicleInfo[TOTALVEH+1][vSpawnDelay]);
  21. printf("[dbg] %i %i", veh_id, VehicleInfo[TOTALVEH+1][vFrac]);
  22. TOTALVEH++;
  23. }
  24. }
  25. printf("[Загружено динамических автомобилей]: <%i>", rows);
  26. return 1;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement