Raised This Month: $ Target: $400
 0% 

Help with set_task and looping


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Willmaker
Senior Member
Join Date: Dec 2004
Location: Sydney, Australia
Old 12-23-2005 , 10:06   Help with set_task and looping
Reply With Quote #1

This little plugin I made works fine, but I have found a bug that I need help with.

Saying !regen_1 starts the regeneration, and then saying !regen_0 stops it, no problems there. But if I were to say !regen_1 again, I would start regenerating at twice the speed. If I say it again, it would regen at 3 times the speed etc etc. I think it has something to do with the set_task being called more than once without the first one stopping. Can someone help me out with this please?
Attached Files
File Type: sma Get Plugin or Get Source (regen.sma - 730 views - 1.6 KB)
Willmaker is offline
Send a message via ICQ to Willmaker Send a message via AIM to Willmaker Send a message via MSN to Willmaker Send a message via Yahoo to Willmaker
 


Thread Tools
Display Modes

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:52.


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