amx_assembly
amx_assembly copied to clipboard
Calling native functions on Linux with crashdetect
I compiled Zeex/samp-plugin-crashdetect@54614d5f5ebef8babef8c3717fd8b4b66b31524f and tried to run the following code.
Works perfectly without crashdetect loaded; when it's loaded, however, execution seems to halt when attempting to call the native.
#include <a_samp>
#include <amx/dynamic_call>
main() {
print("test");
new addr = GetNativeAddressFromName("print");
CallNativeByAddress(addr, ref("hello"));
}