Raised This Month: $ Target: $400
 0% 

More effective timer than this?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 06-05-2010 , 20:43   Re: More effective timer than this?
Reply With Quote #1

Quote:
Originally Posted by Bugsy View Post
Just make sure to set iTimer to 90 each time you call that set_task line.
Done.

EDIT: Fixed with the timer numbers proper.

Code:
new iTimer = 90 yourfunc() {     iTimer = 90     set_task( 1.0, "TaskCount", _, _, _, "a", 90 ) } public TaskCount() {     set_hudmessage( 255, 0, 0, -1.0, 0.0, 0, 6.0, 1.0 )     new iNum =  floatround( float( iTimer % 60 ) ) // floats are not compatible with the modulo operator     show_hudmessage( 0, "NightCrawlers: %i:%s%i", floatround( ( iTimer / 60.0 ), floatround_floor ), ( 0 <= iNum < 10 ) ? "0" : "", iNum )     iTimer-- }
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT

Last edited by wrecked_; 06-05-2010 at 21:36.
wrecked_ 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 05:26.


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