Results 1 to 2 of 2

Thread: time hud

  1. #1
    Private First Class
    Join Date
    Feb 2013
    Posts
    201
    Thanks
    4
    Thanked 10 Times in 7 Posts

    time hud

    hello , how make time hud with seconds and milliseconds ?

    PHP Code:
        sec 10;
        
    milisec 99;
        while(
    1)
        {
            
    sec -= 0.1;
            
    milisec -= 1;
            
    self.hudbuble setValue(int(time sec));
            
    wait 0.1;
        } 
    i need : seconds : miliseconds
    Last edited by malyczolg; 9th July 2013 at 12:21.

  2. #2
    Private
    Join Date
    Jul 2013
    Posts
    14
    Thanks
    1
    Thanked 2 Times in 2 Posts
    1. Your script seems to be wrong: the int() function accepts only one argument, while you're going with two. Honestly, the whole script looks strange to me.
    2. Milliseconds will make sense only in case your server's frame rate is 1000. The server hoster will kill you if you change sv_fps to 1000.

  3. The Following User Says Thank You to megazor For This Useful Post:

    kung foo man (9th July 2013)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •