Raised This Month: $ Target: $400
 0% 

Check if() Task done .


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 12-01-2011 , 23:41   Re: Check if() Task done .
Reply With Quote #5

Quote:
Originally Posted by Stressful View Post
I tried that but the plugin just skip the task . And when I swap their places , The task just keep repeating and repeating the same thing .
PHP Code:


    if(
g_flTask[id] <= get_gametime()) 
    { 
        
g_bTask[id] = false

        
// task done; 
    

    
if(!
g_bTask[id]) 
        return; 

You have tried the worst code that has been given.

drekes code will telle you if a task is finished or hasn't been launched yet.
Devil259 code is little better.
If you understand both codes, you can do something ok.

fl0werD's code is the exact example of what you must NOT do.
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 12-01-2011 at 23:41.
ConnorMcLeod 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 08:28.


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