SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 08/10/2014, 11:23 AM   #1
Nils94
Little Clucker
 
Join Date: Nov 2011
Location: Germany
Posts: 22
Reputation: 0
Default [Help] Plugin dev

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)
Nils94 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[MySQL] From StickenKid's plugin to BlueG's plugin jessejanssen Scripting Help 2 15/06/2014 01:20 AM
MySQL Plugin R5 plugin problem dud Scripting Help 12 05/12/2011 06:28 PM
mysql plugin. loading plugin failed ikkentim Help Archive 2 10/02/2011 02:32 PM


All times are GMT. The time now is 11:11 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.