Raised This Month: $ Target: $400
 0% 

Finding miliseconds on prokreedz problem...


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
NucL3ra
Veteran Member
Join Date: Sep 2008
Location: Bucuresti , Romania
Old 03-20-2010 , 08:46   Finding miliseconds on prokreedz problem...
Reply With Quote #1

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 ) ) * 100floatround_floor )
if (
isec >= 10)
   
ColorChat(0GREEN"[Kreedz]^x01 %s finished the map in^x03 %d:%d.%02i ^x01(%d CP%s)",name,imin,isec,checkpointnum[id-1],checkpointnum[id-1] == "" "s",ims)
if (
isec 9)
   
ColorChat(0GREEN"[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] == "" "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")

Last edited by NucL3ra; 03-20-2010 at 08:48.
NucL3ra is offline
Send a message via Yahoo to NucL3ra
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:36.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode