SetNTVOptional() isn't being called automatically?
What could cause my SetNTVOptional() to not call automatically?
I made sure I have the #include for it, made sure I undefined REQUIRE_PLUGIN before including and set required to 0 in SharedPlugin. Getting "native X not found" unless I manually call the SetNTVOptional() function in AskPluginLoad2. Which is weird as I only get the error for 1 native. |
Re: SetNTVOptional() isn't being called automatically?
It won't be called if you named it incorrectly.
|
Re: SetNTVOptional() isn't being called automatically?
Quote:
Plugin file name is shavit-core. .inc Code:
public SharedPlugin __pl_shavit = Code:
#undef REQUIRE_PLUGIN |
Re: SetNTVOptional() isn't being called automatically?
Using your first block (with an #endif and native void Shavit_Rankings_DeleteMap();) and the following code, the plugin loads fine for me:
PHP Code:
|
Re: SetNTVOptional() isn't being called automatically?
Quote:
Edit: I found that the issue is gone as soon as I remove the file = "file name", part in the SharedPlugin struct. Is that a bug? |
Re: SetNTVOptional() isn't being called automatically?
If you can post code with everything cut out of it possible that still has the problem, we'll look into it.
|
Re: SetNTVOptional() isn't being called automatically?
Quote:
Code:
#tryinclude |
Re: SetNTVOptional() isn't being called automatically?
#tryinclude isn't very useful. If the include is missing, then you can't have any mention of its declared stuff or the compile will fail. You'd end up wrapping everything in #ifs to deal with it and then the resulting binary will not optionally use the other plugin if the include was missing at compile-time.
|
All times are GMT -4. The time now is 07:15. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.