26.01.2014, 22:34
Set up a speedometer and get the speed of the player every second.
Then divide the speed by 60 and then by 60 again so you get the speed in KMS(kilometers per second).
Add the result to the mileage variable and you're done.
Then divide the speed by 60 and then by 60 again so you get the speed in KMS(kilometers per second).
Add the result to the mileage variable and you're done.