Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @LoadCAR();
- @LoadCAR()
- {
- new rows, id_veh;
- cache_get_row_count(rows);
- if(rows)
- {
- for(new i; i < rows; i++)
- {
- cache_get_value_index_int(i, 1, VehicleInfo[TOTALVEH+1][vModel]);
- cache_get_value_index_int(i, 2, VehicleInfo[TOTALVEH+1][vColor1]);
- cache_get_value_index_int(i, 3, VehicleInfo[TOTALVEH+1][vColor2]);
- cache_get_value_index_float(i, 4, VehicleInfo[TOTALVEH+1][vX]);
- cache_get_value_index_float(i, 5, VehicleInfo[TOTALVEH+1][vY]);
- cache_get_value_index_float(i, 6, VehicleInfo[TOTALVEH+1][vZ]);
- cache_get_value_index_float(i, 7, VehicleInfo[TOTALVEH+1][vA]);
- cache_get_value_index_int(i, 8, VehicleInfo[TOTALVEH+1][vFrac]);
- cache_get_value_index_int(i, 9, VehicleInfo[TOTALVEH+1][vJob]);
- cache_get_value_index_int(i, 10, VehicleInfo[TOTALVEH+1][vSpawnDelay]);
- 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]);
- printf("[dbg] %i %i", veh_id, VehicleInfo[TOTALVEH+1][vFrac]);
- TOTALVEH++;
- }
- }
- printf("[Загружено динамических автомобилей]: <%i>", rows);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement