18.04.2014, 23:03
hi, i found this code but it tells mileage in KM. How to change it to M?
Код:
new Float:Milleage[MAX_VEHICLES];
Код:
new Float:ST[4], vehicleid; vehicleid = GetPlayerVehicleID(playerid); GetVehicleVelocity(vehicleid,ST[0],ST[1],ST[2]); ST[3] = floatsqroot(floatpower(floatabs(ST[0]), 2.0) + floatpower(floatabs(ST[1]), 2.0) + floatpower(floatabs(ST[2]), 2.0)) * 179.28625; Milleage[vehicleid] += ST[3]/2000;

