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]