Raised This Month: $ Target: $400
 0% 

How to call function every second?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
KviZ
Senior Member
Join Date: Feb 2011
Location: Lithuania
Old 04-09-2011 , 05:04   How to call function every second?
Reply With Quote #1

I know it's something about set_task.
I found this, but I don't understand a few things.
set_task ( Float:time, const function[], id = 0, parameter[]="", len = 0, flags[]="", repeat = 0 )

1. Where do I need to put id if I want to make the function repeat on server and not bind on some player?
2. What is a "parameter" and "len" in set_task?

Thanks
KviZ is offline
 



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


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