Data is persistent over map changes, when I don't want it to be
Hey,
I have a simple TF2 plugins that deals with balancing teams. Sadly, it keeps some data between maps and it causes some bugs. In other words, the method that clears this data isn't called - Code:
public OnMapStart() Thanks |
Re: Data is persistent over map changes, when I don't want it to be
Something might be wrong with _enabled. Show more code.
|
Re: Data is persistent over map changes, when I don't want it to be
1 Attachment(s)
The full plugin is attached.
|
Re: Data is persistent over map changes, when I don't want it to be
Well, these don't really address the problem you posted, but they're things that will likely get mentioned by a SourceMod approver if you submit it as a new plugin:
1. PHP Code:
2. Hook either OnClientDisconnect or OnClientDisconnect_Post, not both. I recommend OnClientDisconnect_Post based on what you're doing. 3. PHP Code:
PHP Code:
|
All times are GMT -4. The time now is 06:29. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.