View Single Post
StealthGus
Junior Member
Join Date: Mar 2015
Old 03-20-2018 , 12:37   Re: "Client X is not connected" directly after IsClientConnected
Reply With Quote #2

You aren't checking for IsClientConnected, you're checking !IsClientConnected or if client is not connected. Same thing with your "IsFakeClient". And then you're having it continue to a function that is trying to perform something on a client that is either not there or is a fake client.

You should change it to something like this:

PHP Code:
for (int i 1MaxClientsi++) {
  if (
IsClientConnected(i) && !IsFakeClient(i)) {
    
EmitSoundToClient(isound_witchwitch_idSNDCHAN_AUTOSNDLEVEL_NORMALSND_NOFLAGSSNDVOL_NORMALSNDPITCH_NORMAL, -1NULL_VECTORNULL_VECTORtrue0.0);
  }


Last edited by StealthGus; 03-20-2018 at 12:42.
StealthGus is offline