Raised This Month: $ Target: $400
 0% 

Client not connected Prevention.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
extremeg
Senior Member
Join Date: Dec 2012
Old 04-21-2018 , 18:06   Client not connected Prevention.
Reply With Quote #1

Hello guys,

I have the question to you if someone of you maybe know how we can prevent that connected players which are alive that we become sometimes the error:

Exception reported: Client 3 is not connected

My problem is that i dont understand it why. The player is connected successfully and is already a time on the server. I have already a check for every command that i check with IsValidClient(client) that already includes a IsClientConnected check for the client. This tells me then that this function (IsClientConnected) maybe dont works? When i check before i access to the command with IsValidClient(client) and it returns true it cant be right.

Code of IsValidClient:

Code:
stock bool IsValidClient(int client)
{
	if (client >= 1 && client <= MaxClients && IsValidEntity(client) && IsClientConnected(client) && IsClientInGame(client))
	{
		return true;
	}
	
	return false;
}
good Regards,
cRUSHER [#HLG]

Last edited by extremeg; 04-21-2018 at 18:18.
extremeg 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 20:05.


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