Raised This Month: $ Target: $400
 0% 

Set_Task problem


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 04-13-2011 , 19:34   Set_Task problem
Reply With Quote #1

I'm trying to use set_task to run a function when a round has 8 minutes left. I am using a plugin that Connor made that returns the amount of seconds remaining in a round, but whenever I set the task, it runs immediately, even if it isn't 8:00 minutes left in the round.

PHP Code:
set_taskfloatget_remaining_seconds() - ( 60 ) ), "startDodgeballDay" ); 
get_remaining_seconds returns seconds left in round.
8 * 60 means that when there are 8 minutes left ( 8 minutes times 60 seconds )

Any ideas as to what the problem is?
__________________
Quote:
Originally Posted by DarkGod View Post
nikhilgupta generates his plugins using sheer awesome.
If you like my work, please
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
 



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 19:55.


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