Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public onPlayerCarsLoad(playerid)
- {
- new num_fields, num_rows;
- cache_get_data(num_rows, num_fields, dbhandle);
- if(!num_rows)return 1;
- for(new i=0; i<num_rows; i++)
- {
- new id = getFreeCarID();
- cInfo[id][model]=cache_get_field_content_int(i, "model", dbhandle);
- cInfo[id][besitzer]=cache_get_field_content_int(i, "besitzer", dbhandle);
- cInfo[id][c_x]=cache_get_field_content_int(i, "x", dbhandle);
- cInfo[id][c_y]=cache_get_field_content_int(i, "y", dbhandle);
- cInfo[id][c_z]=cache_get_field_content_int(i, "z", dbhandle);
- cInfo[id][c_r]=cache_get_field_content_int(i, "r", dbhandle);
- cInfo[id][db_id]=cache_get_field_content_int(i, "id", dbhandle);
- cInfo[id][id_x] = 1;
- CreateVehicle(cInfo[id][model],cInfo[id][c_x],cInfo[id][c_y], cInfo[id][c_z],cInfo[id][c_r],-1, -1, -1);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment