Raised This Month: $ Target: $400
 0% 

pausing plugin execution for X seconds...


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ann0yanc3
Junior Member
Join Date: Mar 2004
Old 04-30-2004 , 16:39   pausing plugin execution for X seconds...
Reply With Quote #1

Here's the issue:

My plugin loads 2 config files that are both parameters. I have them set to load, then the plugin reads the values. However, when I execute the configs via console_cmd, they don't execute fast enough before the plugin starts checking the values, which is causing some errors.

So, instead of me having to make a new function to input configs manually, is there a way to pause execution for like 2 seconds before the rest of the function continues.

I can't use set_task. I need a pause function, not like the current pause one. Example, pause_time(2), would just sit there for 2 seconds, then continue executing the curret function.

Any ideas?
ann0yanc3 is offline
QwertyAccess
Veteran Member
Join Date: Feb 2004
Location: Enjiru Layer
Old 04-30-2004 , 19:06  
Reply With Quote #2

edit: blah nm i read it wrong.
whats wrong with using set_task though :O
__________________
QwertyAccess is offline
devicenull
Veteran Member
Join Date: Mar 2004
Location: CT
Old 04-30-2004 , 19:11  
Reply With Quote #3

Why can't you use set_task?
Try this though. At the TOP (First line) of plugin_init() put the execute, then, put any of the checking at the BOTTOM of plugin_init() or possibly plugin_cfg()
__________________
Various bits of semi-useful code in a bunch of languages: http://code.devicenull.org/
devicenull is offline
ann0yanc3
Junior Member
Join Date: Mar 2004
Old 05-01-2004 , 04:58  
Reply With Quote #4

I wrote my own function, it works. But, it's not doing what I thought it would.
ann0yanc3 is offline
Reply


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


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