[help] letting 2 plugins interact with each other
I just made this include, could anyone tell me if this is correct for what i want to do?
the point of the include is to remember when a first plugin has done something that needs to enable an action inside another plugin. So that they can work/interact on each other, will this work? PHP Code:
|
Re: [help] letting 2 plugins interact with each other
I must be overseeing something becous this is not working,
when I started up my server with the 2 plugins that use this include it showed me this error: Code:
L 05/28/2012 - 16:55:07: [AMXX] Plugin "walkguard.amxx" failed to load: Plugin uses an unknown function (name "set_user_rebel") - check your modules.ini. |
Re: [help] letting 2 plugins interact with each other
Did you registered the library and those natives in plugin_natives() in the main plugin?
|
Re: [help] letting 2 plugins interact with each other
No, I added this now but i need some help, this is the first time I attempt something like this:
PHP Code:
what do you mean with the library? |
Re: [help] letting 2 plugins interact with each other
Quote:
Code:
(is_user_rebel(id) ) ? return 1 : return 0 |
Re: [help] letting 2 plugins interact with each other
PHP Code:
PHP Code:
|
Re: [help] letting 2 plugins interact with each other
If you don't use 1 in the end of register_native, then the native function should look like this:
PHP Code:
|
Re: [help] letting 2 plugins interact with each other
Quote:
Quote:
and how about the _remove_user_rebel, will this do it: PHP Code:
|
Re: [help] letting 2 plugins interact with each other
Add ",1" in the end of register_native if you want to use the nativе parameters directly.
|
Re: [help] letting 2 plugins interact with each other
Quote:
but then will the game know that the remove function removes the rebel state( is_user_rebel(id) )? |
| All times are GMT -4. The time now is 07:47. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.