Kick has crashed the server when restart - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP (
https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: Bug Reports (
https://sampforum.blast.hk/forumdisplay.php?fid=20)
+--- Thread: Kick has crashed the server when restart (
/showthread.php?tid=561095)
Kick has crashed the server when restart -
OstGot - 01.02.2015
This code results in the crash during server restart (entering "gmx" in the server console):
pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
if(reason != 2) Kick(playerid);
return 1;
}
And performed
all code in public, and right after that comes the crash. The problem: why kick a player leads to crash the server?
Re: Kick has crashed the server when restart -
dugi - 01.02.2015
What server version?
Re: Kick has crashed the server when restart -
OstGot - 01.02.2015
Quote:
Originally Posted by dugi
What server version?
|
0.3z R4 server update
Re: Kick has crashed the server when restart -
LivingLikeYouDo - 01.02.2015
Sorry if I'm being a rat, but why kick a player when the player already disconnected? (afaik, OnPlayerDisconnect is called when a player disconnects.)
Re: Kick has crashed the server when restart -
OstGot - 01.02.2015
Quote:
Originally Posted by LivingLikeYouDo
Sorry if I'm being a rat, but why kick a player when the player already disconnected? (afaik, OnPlayerDisconnect is called when a player disconnects.)
|
At some of the versions had the opportunity in some way to remain on the server even after the "disconnection". I do not know whether is possible now make it, but all the same question now otherwise)
Re: Kick has crashed the server when restart -
ExtremeReality - 01.02.2015
You should just use the rcon ban IP method as OnPlayerDisconnect calls after they've been disconnected, rendering Kick illogical. What probably happened is that the slot was cleared, but they weren't removed from the game.
Re: Kick has crashed the server when restart -
Sew_Sumi - 02.02.2015
I really think you're kicking a player that is already disconnected, hence your crash...