[Help] Plugin dev
#1

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


Messages In This Thread
[Help] Plugin dev - by Nils94 - 08.10.2014, 11:23

Forum Jump:


Users browsing this thread: 1 Guest(s)