Why is this code causing server crash?
#1

I recently added "disconnect" reason to my server under OnPlayerDisconnect; But when i restart the server using /restart command, it crashes the server. I finally solved why my server was crashing on restarting with crash detect; and this was the reason, i commented this code and then the restart command works absolutely fine.

Can someone figure out what's the issue in this code? Thanks a lot!

Код:
/*switch(reason)
	{
	case 0:
	{
	        SendClientMessageToAllEx(-1, "{C0C0C0}%s(%d) Has Left ZCNR (Timeout / Crash).");
     	}
     	case 1:
     	{
     	    SendClientMessageToAllEx(-1, "{C0C0C0}%s(%d) Has Left ZCNR (Leaving / Quit).");
     	}
     	case 2:
     	{
     	    SendClientMessageToAllEx(-1, "{C0C0C0}%s(%d) Has Left ZCNR (Kicked / Banned).");
     	}
	}*/
Reply


Messages In This Thread
Why is this code causing server crash? - by Ritzy2K - 23.04.2016, 19:02
Re: Why is this code causing server crash? - by povargek - 23.04.2016, 19:09
Re: Why is this code causing server crash? - by Ritzy2K - 23.04.2016, 19:11

Forum Jump:


Users browsing this thread: 1 Guest(s)