Cross-Plugin Communication?
I was wondering if a plugin could communicate with another plugin. Like how there could be one base plugin and then smaller components that can be used or not used. The problem is that my main plugin file is getting too large (2826 Lines) so AMXX-Studio is lagging like a madman for no reason I see (My CPU Usage is fine, RAM is fine also). This is mainly because I have a console which displays information to the player. Right Here (on the bottom left) I want to get messages from the smaller plugin over to the main plugin to display in that message console. I have one method that could work but it would involve hitting the MySQL database every .05 seconds.
|
Re: Cross-Plugin Communication?
Quote:
|
Re: Cross-Plugin Communication?
yes go read Hawks tutorial on API and dynamic natives (two seperate tutorials) , youll see how it works . (good stuff):up:
|
Re: Cross-Plugin Communication?
I tried out the dynamic natives and got this error.
Code:
Natives CalledCode:
zombiemod_test.amxx - Code:
gab_zombie.inc - Code:
|
Re: Cross-Plugin Communication?
Quote:
|
Re: Cross-Plugin Communication?
Code:
#pragma reqlib "gab_zombie"Code:
#pragma reqlib gab_zombie |
Re: Cross-Plugin Communication?
Well everything else but the actual thing works. Instead of recieving a message it just recieves a blank message. As shown here. Any suggestions?
zombiemod_global.amxx - Code:
zombiemod.amxx (One hud_display example) - Code:
gab_zombie.inc - Code:
|
Re: Cross-Plugin Communication?
Inside hud_redir, you need to run param_convert(message), THEN pass it to hud_display..
|
Re: Cross-Plugin Communication?
Hud_redir is hud_display. I tried to put it in hud_redir and it gave me an argument type mismatch. Message is a string just so you know.
|
Re: Cross-Plugin Communication?
Quote:
|
| All times are GMT -4. The time now is 04:57. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.