Raised This Month: $ Target: $400
 0% 

Waiting in code


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
dj_freeze
Veteran Member
Join Date: Dec 2009
Location: Looking for you!
Old 01-28-2014 , 07:06   Waiting in code
Reply With Quote #1

Hello. I have a question: how can i add a time interval in my code?

PHP Code:
public whatever()
{
client_cmd(......)
// i need 5 sec pause here
server_cmd(.....)


Last edited by dj_freeze; 01-28-2014 at 07:06.
dj_freeze is offline
Send a message via Skype™ to dj_freeze
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 01-28-2014 , 07:30   Re: Waiting in code
Reply With Quote #2

set_task
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
dj_freeze
Veteran Member
Join Date: Dec 2009
Location: Looking for you!
Old 01-28-2014 , 07:44   Re: Waiting in code
Reply With Quote #3

set_task(80.0, "some_function", _, _, _, "b");

I need this all to be in one function
I can't create another one for server_cmd
dj_freeze is offline
Send a message via Skype™ to dj_freeze
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 01-28-2014 , 07:49   Re: Waiting in code
Reply With Quote #4

Not possible unless you want to pause the entire server with a recursive loop
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
dj_freeze
Veteran Member
Join Date: Dec 2009
Location: Looking for you!
Old 01-28-2014 , 07:51   Re: Waiting in code
Reply With Quote #5

Bad Thanks
dj_freeze is offline
Send a message via Skype™ to dj_freeze
Reply



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 07:34.


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