[PLUGIN] g_Invoke -> callNative(...) - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [PLUGIN] g_Invoke -> callNative(...) (
/showthread.php?tid=428644)
[PLUGIN] g_Invoke -> callNative(...) -
Shaft - 06.04.2013
Hi guys!
I'd like to try with plugins for SAMP, so I opened Visual Studio 2008 and configured it. Everything was OK, until, I wrote this code:
Код:
cell AMX_NATIVE_CALL n_printPlayerPos(AMX* amx, cell* params)
{
float x = NULL, y = NULL, z = NULL;
g_Invoke->callNative(&PAWN::GetPlayerPos, params[1], &x, &y, &z);
logprintf("[Core] Player: %0.2f; %0.2f; %0.2f;", x, y, z);
return 1;
}
Debuger shows mi this:
Honestly, I don't see any error. Any ideas?
Oh, i forgot. Top of the code:
Код:
#include "main.h"
#include "SDK\amx\amx.h"
#include "SDK\plugincommon.h"
#include "Invoke.h"