SendAudio event sometimes doesn't work
I'm using 7 plug-ins that use this event to detect round end... two that came with AMXX (miscstats, statsx), three of other authors' (PTB, slaylosers) and two of mine...
Sometimes SendAudio event at the end of the round just stops working (PTB stops transfering, slaylosers start slaying people at the start of a round, statistics stoping showing), and continues so on for quite some time, even after map changes. I'm not sure that it continues after server restarts. Anyway, I looked the code of every plug-in and they're using it as register_event, not register_message (I suspected that one of plug-ins might be stopping it)... Help? Anyone had the same problem? P. S. Can values that functions triggered by register_event return (PLUGIN_CONTINUE, PLUGIN_HANDLED) have anything to do with this problem? As far as I know, no, but correct me pls... |
Re: SendAudio event sometimes doesn't work
I recommend to not use register_event/message when you can use register_logevent or something else instead. Why? Because last versions of AMX Mod X provide new emessage_* natives that may mess with other plugins. I already saw few plugins whose authors wasn't careful enough with emesasges_*. Some coders not quite understand when they should and when they shouldn't use that new message system. When you hook logmessages instead of messages/events you can be sure that no confilct will happen. And as for your last question: no.
|
Re: SendAudio event sometimes doesn't work
hm... First of all thx for reply...
I'm aware of emessages, but I'm avoiding using them... and so far I haven't used register_message at all to detect SendAudio, or in any way end of a round... So, you recommend that I use register_logevent instead of register_event in all of these plug-ins except miscstats and statsx? OK, I'll try that... |
| All times are GMT -4. The time now is 06:38. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.