06.05.2013, 17:34
Hello, i have an Timer Problem with this, i think this is the problem, when players joining the server etc all works but when all log off and logging again in the time duplicate and the timer counts 2-3 seconds and not more 1 second and very fast, why is that so? Can you fix it, please? Thanks.
Код:
TimeConvert(time)
{
new minutes;
new seconds;
new string[128];
if(time > 59){
minutes = floatround(time/60);
seconds = floatround(time - minutes*60);
if(seconds>9)format(string,sizeof(string),"%d:%d",minutes,seconds);
else format(string,sizeof(string),"%d:0%d",minutes,seconds);
}
else{
seconds = floatround(time);
if(seconds>9)format(string,sizeof(string),"0:%d",seconds);
else format(string,sizeof(string),"0:0%d",seconds);
}
return string;
}

