16.11.2015, 07:19
1- What is value of MAX_VEHICLES ?
2- Show me your IsVehicleOccupied function
3- What type of database you are using? MySQL/SQLite/Flatfile... and is there a recorde with ID 0 ? in that database
NOTE: Always put GetVehicleModel(i) in if(Vehicles[i][respawncar]==1 && !IsVehicleOccupied(i)), to make sure that vehicle is a valid vehicle.
2- Show me your IsVehicleOccupied function
3- What type of database you are using? MySQL/SQLite/Flatfile... and is there a recorde with ID 0 ? in that database
NOTE: Always put GetVehicleModel(i) in if(Vehicles[i][respawncar]==1 && !IsVehicleOccupied(i)), to make sure that vehicle is a valid vehicle.