Raised This Month: $ Target: $400
 0% 

Set_task.... am i doing this right?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
TotalNoobScripter
Senior Member
Join Date: Aug 2004
Old 08-30-2004 , 13:57   Set_task.... am i doing this right?
Reply With Quote #1

set_task(5.0,"stats")


and i have the stats set up correctly. the purpose of this is to loop the function and to show a client a HUD message at the center-left of the screen. The reason for the loop is so that the HUD message will appear constant, and the HUD message will change on the next loop so it will show the updated varable.

the 5.0 is 5 seconds right?
TotalNoobScripter is offline
Send a message via AIM to TotalNoobScripter
KRoT@L
Member
Join Date: Aug 2004
Location: http://www.amxmod.net
Old 08-30-2004 , 14:01  
Reply With Quote #2

set_task(5.0,"stats",846,"",0,"b")

* "b" - loop task.
KRoT@L is offline
Votorx
Senior Member
Join Date: Jun 2004
Old 08-30-2004 , 14:03  
Reply With Quote #3

What exactly is the third parameter? I always just leave it at zero.
__________________
Currently Looking for a mod team.
Votorx is offline
Send a message via AIM to Votorx Send a message via MSN to Votorx Send a message via Yahoo to Votorx
KRoT@L
Member
Join Date: Aug 2004
Location: http://www.amxmod.net
Old 08-30-2004 , 14:26  
Reply With Quote #4

I think it's the id of the task and it's not very good when many different plugins use tasks with the same id, that's why I write a random number to be "sure" that no other task has that id.
KRoT@L 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 17:18.


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