SVC_INTERMISSION
Hello. The problem is with register_message(SVC_INTERMISSION..
While using Galileo(http://forums.alliedmods.net/showthread.php?t=77391) I'm trying to hook this event with another plugin that way: Code:
register_message(SVC_INTERMISSION, "Message_Intermission");Code:
message_begin(MSG_ALL, SVC_INTERMISSION);public Message_Intermission won't load. Any solutions or explanations? |
Re: SVC_INTERMISSION
Messages sent with message_begin() cannot be hooked.
The message has to be sent with emessage_begin() (and appropriate e*() functions instead of the normal ones) to be hooked. |
Re: SVC_INTERMISSION
Can You give me an example ?
|
Re: SVC_INTERMISSION
emessage_begin(MSG_ALL, SVC_INTERMISSION);
emessage_end(); |
Re: SVC_INTERMISSION
Quote:
|
Re: SVC_INTERMISSION
message.inc :
Code:
/* These functinos are used to generate client messages. |
Re: SVC_INTERMISSION
And hook part in other plugin won't change? Am I correct?
|
Re: SVC_INTERMISSION
Echm, when I changed it for:
Code:
emessage_begin(MSG_ALL, SVC_INTERMISSION); |
Re: SVC_INTERMISSION
Same when you disable your "another plugin" ?
|
Re: SVC_INTERMISSION
Yes. However if it isn't disabled it works as it should.
|
| All times are GMT -4. The time now is 23:26. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.