PDA

View Full Version : time hud



malyczolg
9th July 2013, 13:15
hello , how make time hud with seconds and milliseconds ?


sec = 10;
milisec = 99;
while(1)
{
sec -= 0.1;
milisec -= 1;
self.hudbuble setValue(int(time , sec));
wait 0.1;
}

i need : seconds : miliseconds

megazor
9th July 2013, 13:51
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.