[Question] safely KillTimer()
Can we remove error log when KillTimer() using to a invalid handle?
Most time we don't need this log. |
Re: [Question] safely KillTimer()
Why would you call KillTimer on an invalid handle? If you're saving the timer Handle and you know the timer is gone, you should set it to 0 (or INVALID_HANDLE) to mark it as invalid.
|
Re: [Question] safely KillTimer()
Code:
new Handle:hTimer[65] thank you. |
Re: [Question] safely KillTimer()
This would fix your problem:
Code:
Note that KillTimer()'s second parameter must be false... autoClose is only if you pass a Handle to the timer; you passed a client index. |
Re: [Question] safely KillTimer()
oh, I see.
thanks a lot. |
All times are GMT -4. The time now is 10:33. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.