amx_assembly icon indicating copy to clipboard operation
amx_assembly copied to clipboard

Calling native functions on Linux with crashdetect

Open oscar-broman opened this issue 11 years ago • 0 comments

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"));
}

oscar-broman avatar Feb 05 '14 13:02 oscar-broman