MarkNativeAsOptional - inconvenient moment.
z.inc
PHP Code:
PHP Code:
[SM] Plugin z.smx failed to load: Native "Test_z" was not found. If I rename z.smx to zz.smx (or other) then it works. if I do: PHP Code:
Why public void __pl_z_SetNTVOptional() doesn't work for z.smx :cry: Why am I forced to do AskPluginLoad2->MarkNativeAsOptional in z.smx :cry: ----------------- It will work if in z.smx I do: PHP Code:
Apparently __pl_z_SetNTVOptional doesn't work because of the delay and I have to do MarkNativeAsOptional. Anyway, I expected more from __pl_z_SetNTVOptional. |
Re: MarkNativeAsOptional - inconvenient moment.
Quote:
Example: z.inc PHP Code:
PHP Code:
zz.sp PHP Code:
|
Re: MarkNativeAsOptional - inconvenient moment.
Quote:
Quote:
In any case, I will find the optimal solution, but I thought that __pl_z_SetNTVOptional was not working correctly and created this thread. Perhaps I should have written about this in section "Issues" (github). |
Re: MarkNativeAsOptional - inconvenient moment.
Quote:
Fortis was kind enough to show you the right way to register a native (if you're still unsure review the wiki). Quote:
|
Re: MarkNativeAsOptional - inconvenient moment.
Quote:
|
Re: MarkNativeAsOptional - inconvenient moment.
A plugin doesn't run its own SetNTVOptional implementation, it doesn't make sense to - natives should always exist for the lifetime of a plugin.
|
Re: MarkNativeAsOptional - inconvenient moment.
Quote:
|
Re: MarkNativeAsOptional - inconvenient moment.
Quote:
PHP Code:
|
Re: MarkNativeAsOptional - inconvenient moment.
Quote:
---------- I think I understand what you mean. If the native is created using a timer (even 0.1), then other plugins get an error: "[SM] Exception reported: Native is not bound". But still works in "OnPluginStart" or if the plugin was loaded after the native-creator plugin. Thx. |
All times are GMT -4. The time now is 10:58. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.