View Single Post
Author Message
jugule
AlliedModders Donor
Join Date: Apr 2020
Old 06-07-2020 , 09:18   Client index 0 is invalid
Reply With Quote #1

PHP Code:
L 06/07/2020 11:39:36: [SMException reportedClient index 0 is invalid
L 06
/07/2020 11:39:36: [SMBlamingtest.smx
L 06
/07/2020 11:39:36: [SMCall stack trace:
L 06/07/2020 11:39:36: [SM]   [0GetClientTeam
L 06
/07/2020 11:39:36: [SM]   [1Line 1386test.sp::Hook_OnTakeDamage 
function:

PHP Code:
if(test)
        {
            
            if(
GetClientTeam(client) == 2)
            {
                if(
GetClientTeam(attacker) == GetClientTeam(client) && IsFreezed[client] && !IsFreezed[attacker])
                {
                
SetEntityMoveType(clientMOVETYPE_WALK);
                
SetEntPropFloat(clientProp_Data"m_flLaggedMovementValue"1.0);
                
SetEntityRenderColor(client255255255255);
                
IsFreezed[client] = false;
                --
FreezeCount;
                } 
                else if(
GetClientTeam(attacker) != GetClientTeam(client) && !IsFreezed[client])
                {
                
SetEntityMoveType(clientMOVETYPE_NONE);
                
SetEntPropFloat(clientProp_Data"m_flLaggedMovementValue"0.0);
                
SetEntityRenderColor(client00255255);
                
IsFreezed[client] = true;
                ++
FreezeCount;
                }
            }
        } 
what is problem with this?

Last edited by jugule; 06-07-2020 at 09:18.
jugule is offline