Raised This Month: $ Target: $400
 0% 

SendAudio event sometimes doesn't work


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
- Billy The Kid -
Member
Join Date: Oct 2006
Old 05-05-2007 , 03:41   SendAudio event sometimes doesn't work
Reply With Quote #1

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...
__________________

Last edited by - Billy The Kid -; 05-05-2007 at 03:56.
- Billy The Kid - is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 05-05-2007 , 04:35   Re: SendAudio event sometimes doesn't work
Reply With Quote #2

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.
VEN is offline
- Billy The Kid -
Member
Join Date: Oct 2006
Old 05-05-2007 , 07:44   Re: SendAudio event sometimes doesn't work
Reply With Quote #3

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...
__________________
- Billy The Kid - is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:38.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode