SA-MP Forums Archive
Removed player due to error - 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: Removed player due to error (/showthread.php?tid=362103)



Removed player due to error - Chuck1892 - 23.07.2012

Hi there!
Im new at Pan and just create a simple Admin Script, but i have a Problem with that. As i tested The Script with my mate, we find a bug. He kicked me via a CMD and when i reconnect, i got that warning message:

Код:
[23:37:58] Warning(s007): Exception 0xC0000005 at 0x4D1750
[23:37:58] Warning(playerped): Exception 0xC0000005 at 0x5E5815
[23:37:58] Removed player 2 due to error.
What could be The problem? If you need a closer lookinside the script, just say that!


AW: Removed player due to error - Chuck1892 - 24.07.2012

Nobody know something?


Re: Removed player due to error - Ronaldo_raul™ - 24.07.2012

As fas as I know, This is client sided. So, if you get this error it doesn't mean he is kicked or banned or something. Just that your client was unable to sync the player.


AW: Removed player due to error - Chuck1892 - 24.07.2012

Yea i know that, but everytime I connect to the server, after I get kicked, that message appears.


Re: Removed player due to error - Ronaldo_raul™ - 24.07.2012

Can you show me the kick command then ?


AW: Removed player due to error - Chuck1892 - 24.07.2012

Код:
dcmd_kick(playerid,params[])
{
	if(pInfo[playerid][pAdmin] >= 1)
	{
		if(sscanf(params, "u", fID)) 
		{
			return SendClientMessage(playerid,RED,"[Hinweis!] /kick [ID]");
		}
		if(!IsPlayerConnected(fID))
		{
			SendClientMessage(playerid, WHITE, "Es ist kein Spieler mit der angegebenen ID online.");
		}
		else
		if(fID == playerid)
		{
				SendClientMessage(playerid, WHITE,"Du kannst dich nicht selber kicken!");
		}
		else
		{
			format(mstring, sizeof(mstring), "Du wurdest von %s gekickt.",pname(playerid));
			SendClientMessage(fID, WHITE, mstring);
			format(mstring, sizeof(mstring), "%s wurde von %s vom Server gekickt.",pname(fID),pname(playerid));
			SendClientMessageToAll(WHITE, mstring);
			Kick(fID);
		}
	}
	else
	{
		SendClientMessage(playerid, RED, "Du hast nicht die benцtigten Rechte!");
	}	
	return 1;
}



Re: Removed player due to error - Ronaldo_raul™ - 24.07.2012

Try re-installing your client. As I don't get the problem roots, I am unable to help you.

Sorry.


AW: Removed player due to error - Chuck1892 - 24.07.2012

Damn .. a re-install has not helped ..

But thank you for your help!