Removed player due to error
#1

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!
Reply
#2

Nobody know something?
Reply
#3

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.
Reply
#4

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

Can you show me the kick command then ?
Reply
#6

Код:
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;
}
Reply
#7

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

Sorry.
Reply
#8

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

But thank you for your help!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)