function timer(%client)
{
Cancel(%client.timer);
%client.timer = schedule(1,0,timer,%client);
%client.time += 0.001;
}
function GameConnection::EHO_startTimer(%client)
{
messageClient(%client,'MsgAdminForce',"<color:00ff00>The timer has started!");
timer(%client);
}
function GameConnection::EHO_stopTimer(%client)
{
Cancel(%client.timer);
messageClient(%client,'MsgAdminForce',"<color:00ff00>Your time was <color:ffff00> " @ %client.time @ "<color:00ff00>.");
%client.time = 0;
}
The error is that %client.time goes up by 0.1 about every half second. It's on my server right now if you want to take a look.
I will put all the code (this is part of it) into a pastebin if necessary.