Register and Use Native in the Same Plugin
Hello. I'm using native with style 0 and I'm trying to use the native in the same plugin in which I registered it.
Include file test.inc contains: PHP Code:
PHP Code:
PHP Code:
|
Re: Register and Use Native in the Same Plugin
If you're not using strings in native like public _Test(String[]) something like this, I suggest to use style 1 which is more easier ^^
|
Re: Register and Use Native in the Same Plugin
Quote:
|
Re: Register and Use Native in the Same Plugin
What's your purpose of creating and using a native in the same plugin in the first place?
|
Re: Register and Use Native in the Same Plugin
I'm sure that I read somewhere that using natives in the same plugin where they are defined it's not allowed or not recommended. Don't remember exactly.
|
Re: Register and Use Native in the Same Plugin
Quote:
PHP Code:
|
Re: Register and Use Native in the Same Plugin
Call the function directly. There is no reason to use the "native" as a native.
Oh, wait, in post 1 you are not using the native. You are using the local function like I am suggesting. EDIT: umm . . . maybe I'm wrong, I'll need to find out what style 0 and style 1 are. |
Re: Register and Use Native in the Same Plugin
Quote:
In style 0 you need to use get_param functions. |
Re: Register and Use Native in the Same Plugin
Well, it's probably better to recreate the native's functionality as a stock and use that anyways.
|
| All times are GMT -4. The time now is 07:17. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.