I tried for about 2 days to find out this problem and as usual I'm going to ask for your help...
This is the code for finish time
PHP Code:
if((equal(entname,"counter_off") || equal(entname,"clockstopbutton") || equal(entname,"clockstop")) && timer_started[id-1]) {
new name[32]
get_user_name(id,name,32)
new kreedztime = get_systime() - timer_time[id-1]
new imin = floatround(kreedztime / 60.0,floatround_floor)
new isec = floatround(kreedztime - imin * 60.0,floatround_floor)
new ims = floatround( ( kreedztime - ( imin * 60.0 + isec ) ) * 100, floatround_floor )
if (isec >= 10)
ColorChat(0, GREEN, "[Kreedz]^x01 %s finished the map in^x03 %d:%d.%02i ^x01(%d CP%s)",name,imin,isec,checkpointnum[id-1],checkpointnum[id-1] == 1 ? "" : "s",ims)
if (isec < 9)
ColorChat(0, GREEN, "[Kreedz]^x01 %s finished the map in^x03 %d:0%d.%02i ^x01(%d CP%s)",name,imin,isec,checkpointnum[id-1],checkpointnum[id-1] == 1 ? "" : "s",ims)
timer_started[id-1] = false
if (checkpointnum[id-1] > 0)
topten_update(id)
else
proten_update(id)
}
I have no error, but the milisecond never go over 00. It's 00:01.00 , 00:02,00 (always it's 00 on ms... and i can't find how to "turn them on")