crash after callfunc_end
I am trying call the register_item function from Plugin A in Plugin B
PHP Code:
PHP Code:
https://i.imgur.com/DT5oUmb.png |
Re: crash after callfunc_end
* I guess the error is because plugin B is loaded after plugin A
* you can just remove the precache plugin you want to disable * It may also be that you are doing it in plugin_natives, I think it only works once inside the server, plugin_init, natives and precache are started before. callfunc_begin** "This only sets up the function call and covers the pre-requisites. Push parameters using the callfunc_push_* set of functions. The call will be executed only upon using callfunc_end()" callfunc_push_str** "This will defy the "const" specifier if copyback is true, which is only kept for special backwards compatibility." |
Re: crash after callfunc_end
Quote:
PluginMain.amxx => PluginRegistered.amxx => PluginEnd.amxx Quote:
Quote:
So it need to be done before plugins_precache and only plugin_native is the only one before it. |
Re: crash after callfunc_end
Quote:
|
Re: crash after callfunc_end
I would have used pfn_keyvalue instead of native. It has it's own nuances but it comes before precache.
|
Re: crash after callfunc_end
Quote:
Quote:
|
Re: crash after callfunc_end
It seems you're trying to access a memory address not located in the game memory allocations.
TIP: check for index out of bounds errors. |
| All times are GMT -4. The time now is 07:45. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.