Kick player = server crash...
#1

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

Does the same thing happen if the player disconnects?
Reply
#3

no... only on kick
Reply
#4

hey cmg, idk really, check through your scripts for anything likely to be messy when the onplayerdisconnect callback is called
Reply
#5



this is my onplayerdisconnect... any idea ?
Reply
#6

try using print(string) instead of printf(string)
Reply
#7

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

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

oh yea... thnx
Reply
#10

Me to if i kick anybody with the rcon panel then it crash
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)