How to counted 2 minutes from time left
Hey, guys. I tried to counted 2 minutes from time left, but without results.. So I hope someone will help me to do it.
I tried this: PHP Code:
|
Re: How to counted 2 minutes from time left
Two minutes isn't 180 seconds. The returned value is integer, so faster to compare to the same type. You should probably check if the time equals or is less for more general usage of the function. You don't really need to cache the value if you don't use it otherwise. Is the id needed to be passed to the function, it doesn't seem anyhow proper?
|
Re: How to counted 2 minutes from time left
Oops, my error. You mean I should do:
PHP Code:
|
Re: How to counted 2 minutes from time left
may be this can help you
Code:
set_task ( Float:time, const function[], id = 0, parameter[]="", len = 0, flags[]="", repeat = 0 ) Quote:
|
Re: How to counted 2 minutes from time left
What I believe is that you use wrong comparison operator, though I'm not exactly sure what you are wanting to do ( When do you call the function? ). Following would return true if there is equal or less of 2 minutes time left.
Code:
|
Re: How to counted 2 minutes from time left
I tried to counted 2 minutes and appear a hud message. I do it on task. ;)
|
Re: How to counted 2 minutes from time left
Show your code.
Say what you want to do. |
Re: How to counted 2 minutes from time left
PHP Code:
|
Re: How to counted 2 minutes from time left
PHP Code:
|
Re: How to counted 2 minutes from time left
Thank you. :)
|
All times are GMT -4. The time now is 14:27. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.