How to...
How to get an array from other plugin ?
like: Plugin1: Array[id] = 1 Plugin2: if(Array[id] !=0){ //something } |
Re: How to...
As nobody have an idea:
I would prolly make it over nvault or a text-file... Safe the array from one plugin and read it by an other... But be aware of race conditions! I don't know exactly how to prevent that. I know this idea is hackish, but better than no solution!? greetz regalis |
Re: How to...
You can't read variables from another plugin.
You can however transfer data from one plugin to another. Read Hawks tutorial on "Plugin API" in the tutorials section. |
Re: How to...
Here is one way you can do this:
plugin #1: PHP Code:
plugin #2: PHP Code:
|
Re: How to...
(I think)You can also declare a variable as public, fully exposing it to the VM, and allowing other plugins to access it by name. If not cheap suit's way will be the only way.
I think War3 did this or something. Check there and the pawn manual of course :). |
| All times are GMT -4. The time now is 10:34. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.