Raised This Month: $ Target: $400
 0% 

Solved "Client X is not connected" directly after IsClientConnected


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:38.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode