Kick player = server crash... - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Kick player = server crash... (
/showthread.php?tid=68196)
Kick player = server crash... -
cmg4life - 08.03.2009
Hi guys... any idea why when i kick a player the server crashes ? i tryed rcon too and it does the same thing... crash
thnx
Re: Kick player = server crash... -
tehcudguy - 08.03.2009
Does the same thing happen if the player disconnects?
Re: Kick player = server crash... -
cmg4life - 08.03.2009
no... only on kick
Re: Kick player = server crash... -
hazdog - 08.03.2009
hey cmg, idk really, check through your scripts for anything likely to be messy when the onplayerdisconnect callback is called
Re: Kick player = server crash... -
cmg4life - 09.03.2009
this is my onplayerdisconnect... any idea ?
Re: Kick player = server crash... -
Flo_White - 09.03.2009
try using print(string) instead of printf(string)
Re: Kick player = server crash... -
Vince - 09.03.2009
Are you using a script that saves all kicks in a file? If so, you may not have the right folder structure, causing the server to crash.
Re: Kick player = server crash... -
Streetplaya - 09.03.2009
Ah i see..
pawn Код:
new cstring[100];
switch(reason)
{
case 0: format(cstring, sizeof(cstring), "(ID:%d ) %s has left the server... (Timeout)",playerid, pName);
case 1: format(cstring, sizeof(cstring), "(ID:%d ) %s has left the server... (Leaving)",playerid, pName);
}
SendClientMessageToAll(COLOR_ALIEN, cstring);
You forgot "case 2", which is kicked/banned.
Because you forgot it, the "cstring" variable will be left blank and empty strings will make the server crash.
Re: Kick player = server crash... -
cmg4life - 09.03.2009
oh yea... thnx
Re: Kick player = server crash... -
harrold - 09.03.2009
Me to if i kick anybody with the rcon panel then it crash