Guest User

Untitled

a guest
Apr 28th, 2016
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. public onPlayerCarsLoad(playerid)
  2. {
  3. new num_fields, num_rows;
  4. cache_get_data(num_rows, num_fields, dbhandle);
  5. if(!num_rows)return 1;
  6. for(new i=0; i<num_rows; i++)
  7. {
  8. new id = getFreeCarID();
  9.  
  10. cInfo[id][model]=cache_get_field_content_int(i, "model", dbhandle);
  11. cInfo[id][besitzer]=cache_get_field_content_int(i, "besitzer", dbhandle);
  12. cInfo[id][c_x]=cache_get_field_content_int(i, "x", dbhandle);
  13. cInfo[id][c_y]=cache_get_field_content_int(i, "y", dbhandle);
  14. cInfo[id][c_z]=cache_get_field_content_int(i, "z", dbhandle);
  15. cInfo[id][c_r]=cache_get_field_content_int(i, "r", dbhandle);
  16. cInfo[id][db_id]=cache_get_field_content_int(i, "id", dbhandle);
  17. cInfo[id][id_x] = 1;
  18. CreateVehicle(cInfo[id][model],cInfo[id][c_x],cInfo[id][c_y], cInfo[id][c_z],cInfo[id][c_r],-1, -1, -1);
  19. }
  20. return 1;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment