View Single Post
client21
Senior Member
Join Date: Apr 2013
Old 10-16-2021 , 16:10   Re: MarkNativeAsOptional - inconvenient moment.
Reply With Quote #9

Quote:
Originally Posted by Fortis View Post
just note only this plugin can use it.

PHP Code:
#include <z>

public void OnPluginStart()
{
    
CreateTimer(2.0Timer_Natives);
}

public 
Action Timer_Natives(Handle timer)
{
    
CreateNative("Test_Z"Native_Z);
    return 
Plugin_Handled;

Why are you lying?) If another plugin is loaded later or there is the necessary communication between them (for example, using events, or GetFeatureStatus->FeatureType_Native), then this will work. The topic does not need to be continued, the answer was received. It's okay that you couldn't help me

----------
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.

Last edited by client21; 10-17-2021 at 00:59.
client21 is offline