Get variable value from variable in other plugin?
Like so:
Plugin 1 has a variable x = 1 I want Plugin 2 To get value of x and be able to store it in another variable? Thanks |
If you save it as a cvar, then yes you could do that...
|
Any other ways
|
1. make it a public varaible, not just a global variable.
2. make a native in the plugin that the other plugin can call to check the status of the variable. |
or save it into a vault :)
|
or implement a public query function in Plugin1 and use callfunc natives to call it from Plugin2.
|
Quote:
|
Quote:
Basically, when you register a native, any plugin can call it without knowing the "target plugin". ie. simply by the native name. With callfunc you have to provide the target plugin. |
| All times are GMT -4. The time now is 05:09. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.