View Single Post
Author Message
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 03-20-2018 , 12:04   "Client X is not connected" directly after IsClientConnected
Reply With Quote #1

Quote:
L 03/19/2018 - 19:07:46: [SM] Native "EmitSound" reported: Client 18 is not connected
L 03/19/2018 - 19:07:46: [SM] Displaying call stack trace for plugin "l4d_crowned_horde.smx":
L 03/19/2018 - 19:07:46: [SM] [0] Line 370, E:\SM Plugins\SM 1.3 Compiler\include\sdktools_sound.inc::EmitSoun dToClient()
L 03/19/2018 - 19:07:46: [SM] [1] Line 479, l4d_crowned_horde.sp:laySound()
L 03/19/2018 - 19:07:46: [SM] [2] Line 302, l4d_crowned_horde.sp::Event_WitchHarasserSet( )
Code:
	new i;
	for (i = 1; i <= GetMaxClients(); i++)
	{
		if (!IsClientConnected(i))
		{
			continue;
		}
		if (IsFakeClient(i))
		{
			continue;
		}

		EmitSoundToClient(i, sound_witch, witch_id, SNDCHAN_AUTO, SNDLEVEL_NORMAL, SND_NOFLAGS, SNDVOL_NORMAL, SNDPITCH_NORMAL, -1, NULL_VECTOR, NULL_VECTOR, true, 0.0);
	}
Looks like exception by design?

Nothing that I can improve here to prevent it?

Last edited by Dragokas; 03-20-2018 at 17:23. Reason: Solved
Dragokas is offline