Raised This Month: $ Target: $400
 0% 

Question about tasks


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
lqlqlq
Senior Member
Join Date: Jan 2008
Old 07-24-2013 , 19:00   Question about tasks
Reply With Quote #1

I have this:
Code:
public screen(id) {
new name[33]
get_user_name(id, name, 32)
server_cmd( "amx_screen %s 5", name)
}
I need task for "screen" to run only 5 times with 20 seconds interval.
lqlqlq is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 07-24-2013 , 19:36   Re: Question about tasks
Reply With Quote #2

So create a task that will loop 5 times and execute every 20 seconds. Reading the function header is enough for you to figure this out yourself
__________________
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
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 06:27.


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