View Single Post
NovaDenizen
Junior Member
Join Date: Jan 2010
Old 03-27-2010 , 11:19   Re: [TF2] Custom Achievement Manager With MYSQL
Reply With Quote #606

Code:
L 03/26/2010 - 22:53:40: [SM] Native "IsClientConnected" reported: Client index 0 is invalid
L 03/26/2010 - 22:53:40: [SM] Displaying call stack trace for plugin "customs_achievements.smx":
L 03/26/2010 - 22:53:40: [SM]   [0]  Line 1701, customs_achievements.sp::IsValidClient()
L 03/26/2010 - 22:53:40: [SM]   [1]  Line 92, mwach/medic.inc::blocks_medic_uber()
Code:
// ------------------------------------------------------------------------
// IsValidClient
// ------------------------------------------------------------------------
stock bool:IsValidClient(iClient)
{
        if (iClient < 0) return false;
        if (iClient > MaxClients) return false;
        if (!IsClientConnected(iClient)) return false;
        return IsClientInGame(iClient);
}
I think you want to change that one line to:
Code:
        if (iClient <= 0) return false;
NovaDenizen is offline