detect plugin
how can I detect plugin if its running or not.
I want to enable func only when that plugin is running. PHP Code:
|
Re: detect plugin
For the 15th time, use the API.
https://www.amxmodx.org/api/amxmodx/is_plugin_loaded The name of the function is pretty logical so you could have easily found it if you tried searching. |
Re: detect plugin
Quote:
I used this command PHP Code:
|
Re: detect plugin
For the 120th time - show the full error.
|
Re: detect plugin
I am using api of xp plugin
PHP Code:
but I compiled my plugin with that include <xpapi> and added in default plugins.ini Error: amx_plugins PHP Code:
why this plugin not working in normal maps. |
Re: detect plugin
Show the full code and the full error when the server starts.
I'm 99% sure that you get a "bad load" because you're using a function from a plugin that isn't loaded. Using "is_plugin_loaded" won't prevent such errors. You need to use a native filter to check if the natives are avaialble. Check my Knife Models plugin to see how I included natives from my Rank System and use them if the plugin is loaded (lines 9-20, 764-780). |
Re: detect plugin
public plugin_init()
{ //some code } |
| All times are GMT -4. The time now is 02:55. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.