Raised This Month: $ Target: $400
 0% 

Showing miliseconds (Timer)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
wAyz
Senior Member
Join Date: Feb 2010
Location: Germany
Old 01-22-2014 , 12:36   Showing miliseconds (Timer)
Reply With Quote #1

Hello,

I'm currently using Prokreedz 2.31 and changed the code so that the timer looks like that: "00:00:0".
Any ideas how to add the last digit of milisecond? I want it to look like that. "00:00:00"

Code:
                if( ShowTime[Alive[i]] == 1 )
                {
                    new colors[12], r[4], g[4], b[4];
                    new imin = floatround(kreedztime , floatround_floor)/60
                    new isec = kreedztime - (60*imin)
                    get_pcvar_string(kz_hud_color, colors, 11)
                    parse(colors, r, 3, g, 3, b, 4)
                        
                    set_hudmessage(str_to_num(r), str_to_num(g), str_to_num(b), 0.0265, 0.4764, 0, 0.0, 0.4, 0.0, 0.0, 2)    
                    show_hudmessage(Alive[i], "%02d:%s%.1f (%d|%d) %s ",imin,isec < 10 ? "0" : "",isec,checknumbers[Alive[i]], gochecknumbers[Alive[i]], IsPaused[Alive[i]] ? "| *Paused*" : "") 
                }
I guess I have to change something in show_hudmessage line.

Last edited by wAyz; 01-22-2014 at 12:37.
wAyz is offline
 



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 10:12.


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