06.04.2013, 15:04
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:
Debuger shows mi this:
Honestly, I don't see any error. Any ideas?
Oh, i forgot. Top of the code:
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; }
![](http://www.iv.pl/images/70099846122462043355.png)
Oh, i forgot. Top of the code:
Код:
#include "main.h" #include "SDK\amx\amx.h" #include "SDK\plugincommon.h" #include "Invoke.h"