Raised This Month: $51 Target: $400
 12% 

Client index 0 is invalid


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:06.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode