return in plugin_init
Hi...i saw in many plugins this:
PHP Code:
|
Re: return in plugin_init
There is no need to use a return PLUGIN_X inside of plugin_init, unless you don't want your plugin to work or in a restricted mode. In which case you can just use return inside of your statement. This way you don't need to add an extra return at the end of plugin_init.
Example: Code:
|
Re: return in plugin_init
I was shur you will say that...for example:
PHP Code:
|
Re: return in plugin_init
Quote:
|
Re: return in plugin_init
Ok....but why is there ?:) or, it has no effect ?
|
Re: return in plugin_init
It's completly useless.
|
Re: return in plugin_init
Ok.
|
Re: return in plugin_init
Quote:
|
Re: return in plugin_init
well now it is useless
but i remember a bug in amxx 0.16 ( i think it was this version ) where you could use "return PLUGIN_HANDLED" and plugin_init will not be executed on all the other plugins that are loaded after yours^^ |
All times are GMT -4. The time now is 08:25. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.