Function Headers
can anyone explain to me the different function header definitions in a simple way that an idiot such as myself can understand?
i.e. public, stock, none, etc and how can i make a function private (so only this plugin can use it) and how can i make a function so another plugin on the server can use it? |
Re: Function Headers
If a function is anything except public, then it is only accessible in the plugin that includes it.
If a function is public, it can be accessed using callfuncs and forwards through other plugins. Alternatively, you can declare a stock function in an include file, then include the .inc file in multiple plugins. |
Re: Function Headers
So if i wanted to grab functions from another plugin (powers defined in a seperate amxx from the main class) i'd write them all public and call them regularly?
i.e. Code:
Class: powersCode:
Class: baseThis is kind of what i'm trying to accomplish, i'm just trying to figure out the best way to have two plugins communicate. |
Re: Function Headers
Quote:
|
Re: Function Headers
Quote:
|
| All times are GMT -4. The time now is 00:19. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.