[Help] Not Invoking native
#1

Hey I just learn a bit about plugin dev. from tutorial and tried the code but some how plugin is't invoking native.

Code:
cell AMX_NATIVE_CALL KickId(AMX* amx, cell* params)
{

    if(g_Invoke->callNative(&PAWN::Kick, params[1]))
    {
        g_Invoke->callNative(&PAWN::SendClientMessage, params[1], 0xFFFFFFFF, "Bye{FF0000} Bye{FFFFFF} Player.");
        g_Invoke->callNative(&PAWN::Kick, params[1]);
        return 1;
    }
	else logprintf(cell AMX_NATIVE_CALL KickId(AMX* amx, cell* params)
{

    if(g_Invoke->callNative(&PAWN::Kick, params[1]))
    {
        g_Invoke->callNative(&PAWN::SendClientMessage, params[1], 0xFFFFFFFF, "Bye{FF0000} Bye{FFFFFF} Player.");
        g_Invoke->callNative(&PAWN::Kick, params[1]);
        return 1;
    }
	else logprintf("Problem in Function!");
    return 0;);
    return 0;
Here plugin is printing "Problem in Function!" means else statement is executing...

Here is full code:
http://pastebin.com/g1vh3dEN

One more question: Can we use gta sa original natives ? not samp ones...
Reply


Messages In This Thread
[Help] Not Invoking native - by iRana - 14.01.2013, 02:35
Respuesta: [Help] Not Invoking native - by oOFotherOo - 14.01.2013, 10:45
Re: [Help] Not Invoking native - by Gamer_Z - 24.01.2013, 12:10

Forum Jump:


Users browsing this thread: 1 Guest(s)