14.01.2013, 02:35
Hey I just learn a bit about plugin dev. from tutorial and tried the code but some how plugin is't invoking native.
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...
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 is full code:
http://pastebin.com/g1vh3dEN
One more question: Can we use gta sa original natives ? not samp ones...