SA-MP Forums Archive
distance - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: distance (/showthread.php?tid=538738)



distance - ajwar - 23.09.2014

pawn Код:
vInfo[iVehicleID][vMeters] += floatround(floatdiv(GetVehicleSpeed(iVehicleID), 65));
if(vInfo[iVehicleID][vMeters] > 9)
{
    vInfo[iVehicleID][vKm] += 1;
    vInfo[iVehicleID][vMeters] = 0;
}
Now it increases pretty fast, how to slow it down? This code is executed in timer (350ms).


Re: distance - Eth - 24.09.2014

350 ms? do you what does that means? it means less than a second!
what you gonna do is to increase the timer.