Calling function from another plugin
I heard that you can call a function from another plugin into the other with callfunc_begin, If I am right..
So can someone help me with it? I looked into much topics, but coudln't do it exactly. But I like to call the function like that from a plugin which name is test.amxx: PHP Code:
|
Re: Calling function from another plugin
Look for callfunc_*
|
Re: Calling function from another plugin
PHP Code:
2- push [values as parameters] 3- end [setup and do the call] someremote must be public function in the other plugin. |
Re: Calling function from another plugin
Also note that callfunc_end provides the possible return value of the function.
|
Re: Calling function from another plugin
Quote:
PHP Code:
PHP Code:
PHP Code:
EDIT: Kid, please get the fuck out if you can't read anything. Think before posting, thanks! |
Re: Calling function from another plugin
If both plugins are yours, you shoud consider using dynamic natives, it's faster to call 1 native than to call few callfunc_*
http://forums.alliedmods.net/showthread.php?t=41251 In another hand, if you want to release a plugin, and if you want that plugin to be able to interact with an already released plugin, then you can consider callfunc. |
Re: Calling function from another plugin
Since I don't have much experience in scripting, I would like to continue with joropito's example with callfunc_begin.
|
Re: Calling function from another plugin
Quote:
As Connor says, dynamic natives are very easy and when you own both scripts it's the easy way because you call remote functions like a local one. |
Re: Calling function from another plugin
Quote:
|
Re: Calling function from another plugin
Quote:
Quote:
|
| All times are GMT -4. The time now is 07:26. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.