SA-MP Forums Archive
[Help] Plugin dev - 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: [Help] Plugin dev (/showthread.php?tid=540920)



[Help] Plugin dev - Nils94 - 08.10.2014

Hello, I will create my first plugin.
But I have one problem... the server crash..

Plugin:
Code:
cell AMX_NATIVE_CALL CheckUser(AMX* amx, cell* params)
{
	logprintf(" Checkuser...");
	char name[24];
	g_Invoke->callNative(&PAWN::GetPlayerName, params[1], name);
	logprintf(name);
	return 1;
}
Gamemode:
Code:
native CheckUser(playerid);
public OnPlayerConnect(playerid)
{
   CheckUser(playerid);
}
Crash:
Code:
SA-MP Server: 0.3z



Exception At Address: 0x0F4DE886 Module: (SAMP_Plugin.DLL)