I am trying call the
register_item function from Plugin A in Plugin B
- The server just crash without any log or error dialog after callfunc_end(),
- It did print out "Test" on server console before crashing => So it did reach the function but crash upon calling callfunc_end()
- It need it to be in plugin_natives because I want to register it before plugin_precache, preventing the plugin from precaching resources of that plugin
PHP Code:
public register_item(const Name[])
{
server_print(Name);
}
PHP Code:
public plugin_natives()
{
callfunc_begin("register_item", "PluginB.amxx")
callfunc_push_str("Test")
callfunc_end()
}
edit: This is the exception shown in mini-dump after the server crash
__________________