Raised This Month: $ Target: $400
 0% 

Countdown


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
GhostMan
Senior Member
Join Date: Jun 2012
Old 07-15-2012 , 14:02   Countdown
Reply With Quote #1

PHP Code:
new time
time 
30
set_task
1.0"something"TASK_SOMETHING__"a"time )

public 
something()
{
    
time--
    
    if(
time >= 0)
    {
        
set_hudmessage(02550, -1.00.200.01.00.10.14)
        
show_hudmessage(0"Seconds left: %i"time)
    }
    
    else
    {
        
set_hudmessage(02550, -1.00.200.05.00.10.14)
        
show_hudmessage(0"TIME IS OUT!")
        
        if(
task_exists(TASK_SOMETHING))
            
remove_task(TASK_SOMETHING)
    }

After
PHP Code:
time >= 
is false is variable "time" still getting lower and lower values?

Last edited by GhostMan; 07-15-2012 at 14:03.
GhostMan 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 15:22.


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