[CSGO] Why MY Repeat Timer Stop PrintMessage
PHP Code:
Can anyone tell me why timer stop work,thanks a lot! |
Re: [CSGO] Why MY Repeat Timer Stop PrintMessage
you should add "return Plugin_Continue;" in the last line (after n++) if you want that to repeat.
|
Re: [CSGO] Why MY Repeat Timer Stop PrintMessage
At least, because you have handles leak.
You need to close fileHandle. Also, your file is just too large. It could be disk overloading /and/or console buffer overflow in constant calling PrintToConsole(). Need to check. I would read it just once in a huge array and always access to that array only. Never pass client id in timers, use UserId (retrieved by GetClientUserId()). PS. Your math is a mind crack. There is surely something wrong. Marttt, it is Plugin_Continue by default. |
Re: [CSGO] Why MY Repeat Timer Stop PrintMessage
Thanks I really dont know where is this in the SM documentation, as an ex Java/DotNet developer is really weird make "Actions" calls without returns
|
Re: [CSGO] Why MY Repeat Timer Stop PrintMessage
I would imagine that the timer isn't the only thing that stops working on your server. With 10 handles being leaked every second and the constant buffer overflow from PrintToConsole, you could cause the server and all the players on it to crash/disconnect.
Please read about Handles and Timers before attempting to do something like this. It may seem like "simple code" but it's enough to cause issues for anyone using that plugin along with that large ass file. My browser can't even load the entire page without freezing. |
Re: [CSGO] Why MY Repeat Timer Stop PrintMessage
PHP Code:
|
Re: [CSGO] Why MY Repeat Timer Stop PrintMessage
Quote:
Actually, I am always wondering, why compiler does not throw error about missed return. Quote:
I remember I done similar plugin for animated chat dedicated to the last New Year, and wanted to share. But I found inexplicable leak somewhere in game engine related to PrintToChat() command, causing this function is totally broken and displaying a garbage every time. |
Re: [CSGO] Why MY Repeat Timer Stop PrintMessage
it works great!thank you
|
All times are GMT -4. The time now is 06:02. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.