ItsMods

Full Version: First the timer works, now it doesnt show up !?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
also tried endons but then it keeps spamming

Code:
doTimer(countTime)
{

        self.TText = createServerFontString( "extrabig", 1.5 );
        self.TText setPoint( "CENTER", "CENTER", 0, -140 );
        self.TText.color = (255, 255, 255);
        self.TText.sort = 1001;
        self.TText setText("Returning in:");
            
        self.TTimer = createServerFontString( "extrabig", 2.2 );
        self.TTimer setPoint( "CENTER", "CENTER", 0, -120 );
        self.TTimer.color = (255, 0, 0);
        self.TTimer.sort = 1001;
        self.TTimer maps\mp\gametypes\_hud::fontPulseInit();
        //self.TTimer setValue(countTime);
        
        for(countTime = 10; countTime > -1; countTime--)
        {
            self.TTimer setValue(countTime);
            self.TTimer thread maps\mp\gametypes\_hud::fontPulse( level );
            wait 1;
        }
            self.TText destroyElem();
            self.TTimer destroyElem();
            self thread goBack();
}
First it showed up, but now it doesnt anymore Sad (no errors)



Same problem like in this thread maybe?
http://www.itsmods.com/forum/Thread-Code...oesnt.html
>doTimer(countTime)
>for(countTime = 10; countTime > -1; countTime--)

You always set the countTime to 10, the parameter doesn't do anything.

Also I don't see what the problem is, your code suggest it SHOULD only show for 11 seconds.
(03-16-2012, 16:45)Pozzuh Wrote: [ -> ]>doTimer(countTime)
>for(countTime = 10; countTime > -1; countTime--)

You always set the countTime to 10, the parameter doesn't do anything.

Also I don't see what the problem is, your code suggest it SHOULD only show for 11 seconds.

it doesnt show at all Sad first it did, isnt there a little add on code for this function to fix it?