Message call originations
Here's a quickie. Where do the 1st server commands amx_imessage and amx_scrollmsg originate from?
|
Re: Message call originations
you mean what plugin registered these commands?
amx_imessage is from imessage.amxx amx_scrollmsg is from scrollmsg.amxx |
Re: Message call originations
No, I mean where/how do they get called the very first time. The imessages plugin init is:
Code:
|
Re: Message call originations
well:
amxx.cfg calls amx_imessage calls setMessage inside it sets task if not exists: set_task(freq_im, "infoMessage", 12345) i bet scrollmsg does the same thing |
Re: Message call originations
I was under the impression that amxx.cfg got executed before any of the plugin's were initialize. So the register_srvcmd wouldn't be valid at that time. Thus you'd need to call amx_imessage and amx_scrollmsg from somewhere else after the 2 plugins were initialized. Also the initializing of the different imessages need to get into imessage's g_Messages[MAX_MESSAGES][384] array somehow. This must be accomplished somewhere else.
|
Re: Message call originations
amxx.cfg is called after all plugins are loaded
getting into the array has a loop variable that loops through the array everytime infoMessage is called |
Re: Message call originations
Quote:
Thanx |
| All times are GMT -4. The time now is 11:07. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.