Raised This Month: $ Target: $400
 0% 

Repeat set_task until a variable is true


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 10-16-2009 , 15:35   Re: Repeat set_task until a variable is true
Reply With Quote #3

You are getting stuck in an infinite loop here:
Code:
    while (status == false) {
      set_task(5.0, "func2", 0, params, 2);
    }
The while statement is continually repeating itself. Try using an if statement, then in func2, do another if statement to do another set_task on func2.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
 



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 22:33.


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