[PLUGIN] g_Invoke -> callNative(...)
#1

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"
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)