Kento-Rankme icon indicating copy to clipboard operation
Kento-Rankme copied to clipboard

Add additional check for valid clients

Open walliski opened this issue 2 years ago • 0 comments

Sometimes IsClientInGame throws the following exception: Client index 0 is invalid. This can happen if the client is not found based on the userid, which means "0" will be returned from GetClientOfUserId. 0 is not a valid client though, so IsClientInGame does not like it.

walliski avatar Feb 19 '23 16:02 walliski