View Single Post
Author Message
Celena Luna
Veteran Member
Join Date: Aug 2013
Location: Nagazora
Old 06-29-2023 , 04:56   crash after callfunc_end
Reply With Quote #1

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
__________________
My plugin:

Last edited by Celena Luna; 06-29-2023 at 06:08.
Celena Luna is offline