Yes, this is normal behavior as plugins can be loaded in any order.
Are you calling RegPluginLibrary("yourpluginname") inside AskPluginLoad2() in plugin A? If so, to check if plugin A is loaded:
Plugin B:
PHP Code:
public void OnPluginStart()
{
if (LibraryExists("yourpluginname")) {
my_native(xxxxxxxx);
}
}
public void OnLibraryAdded(const char[] name)
{
if (StrEqual(name, "yourpluginname")) {
my_native(xxxxxxxx);
}
}
There is also OnAllPluginsLoaded() which I've never used, so not sure if it has other side effects.
__________________