View Full Version : New odometer Problem

12/08/2015, 12:23 PM
hello, im new to odometer, the more people enter my server the more the odometer goes faster and faster.. everytime I restart server it goes perfect, after 5-6 players enter server the more and fastest odometer goes.

No errors/no Warnings/ a friend gave me the system, and I promised not to give it to anyone!


kmtimer[playerid] = SetTimerEx("Odometer", 1000, true, "i", playerid);

12/08/2015, 01:08 PM
I hope you are killing it on disconnect? Although it should probably be set and killed again when a player enters and exits a vehicle, respectively.

12/08/2015, 01:21 PM
Someone told me to make OnSecondTimer, and to put it in there :)

public OneSecondTimer()
for(new playerid; playerid < MAX_PLAYERS; playerid++)
kmtimer[playerid] = SetTimerEx("Odometer", 50000, false, "i", playerid);
return 1;