Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

How can I call a native from another plugin? I'm getting "Script not found" error. #53

Open
KirillBorunov opened this issue Sep 15, 2021 · 2 comments

Comments

@KirillBorunov
Copy link

I need to call natives of your plugin from another plugin.
But I'm getting a runtime error: "Script not found".

Calling natives to other plugins works good, but with this one not.

I'm using sampgdk_FindNative(name) to find your natives, this works OK.
But using sampgdk_InvokeNativeArray(native, format, args) not executes it and prints "[Pawn.RakNet] BS_ReadValue: Script not found" on the console. This happens with all your natives, not only the mentioned.

I'm doing something wrong?

@katursis
Copy link
Owner

No, sampgdk does something wrong. It invokes a native function using faked amx which Pawn.RakNet don't know about.

Calling once AmxLoad explicitly from Pawn.RakNet with sampgdk_fakeamx_amx() as argument may help you.

@dockfries
Copy link

dockfries commented Apr 23, 2024

I know almost nothing about sampgdk and the c++ language, and I was wondering if anyone could fix the situation, and not just raknet, but other plugin libraries like samp-cef can't be called through samp-node. The underlying samp-node should be the sampgdk_InvokeNativeArray that uses sampgdk.

I am willing to pay a certain amount of money to the person who solves the problem, in fact I am donating open.mp, although only £120 GBP at the moment. You can see here.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants