AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Round Time shows 00:00 (https://forums.alliedmods.net/showthread.php?t=217851)

Randomize 06-08-2013 10:55

Round Time shows 00:00
 
I've tried two ways
PHP Code:

new g_iTimeleft[32]
    new 
timeleft get_timeleft()
    new 
mins timeleft/60
    
new secs timeleft%60
    formatex
(g_iTimeleft31"%02d : %02d"minssecs

and

PHP Code:

new g_iTimeleft[32]
    new 
timeleft get_cvar_num("mp_roundtime")
    new 
mins timeleft/60
    
new secs timeleft%60
    formatex
(g_iTimeleft31"%02d : %02d"minssecs

The first way showed the time 00:00 and the second way showed 00:03.

Randomize 06-30-2013 23:26

Re: Round Time shows 00:00
 
bump

ConnorMcLeod 07-01-2013 00:19

Re: Round Time shows 00:00
 
Question is what you need.

Timeleft on map, then it is first one, but mp_timelimit has to be different from 0.
Timeleft in round, then search the forum, code is already there ;)

Randomize 07-01-2013 04:36

Re: Round Time shows 00:00
 
Okay, thanks Connor. :)


All times are GMT -4. The time now is 16:24.

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