Raised This Month: $ Target: $400
 0% 

cs_get_user_team error (HELP)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Id0x.
Junior Member
Join Date: Dec 2020
Old 01-04-2021 , 06:06   cs_get_user_team error (HELP)
Reply With Quote #1

Code:
L 01/04/2021 - 06:38:38: [CSTRIKE] Invalid player 8 (not in-game)
L 01/04/2021 - 06:38:38: [AMXX] Displaying debug trace (plugin "best_player.amxx", version "1.0")
L 01/04/2021 - 06:38:38: [AMXX] Run time error 10: native error (native "cs_get_user_team")
L 01/04/2021 - 06:38:38: [AMXX]    [0] phpFFGgcW.sma::hamTakeDamage (line 33)
Code:
L 01/04/2021 - 06:38:55: [CSTRIKE] Invalid player 8 (not in-game)
L 01/04/2021 - 06:38:55: [AMXX] Displaying debug trace (plugin "best_player.amxx", version "1.0")
L 01/04/2021 - 06:38:55: [AMXX] Run time error 10: native error (native "cs_get_user_team")
L 01/04/2021 - 06:38:55: [AMXX]    [0] phpFFGgcW.sma::EventDeathMsg (line 45)
PHP Code:
public hamTakeDamage(victiminflictorattackerFloat:damageDamageBits)
{
    if( 
<= attacker <= 32)
    {
        if(
cs_get_user_team(victim) != cs_get_user_team(attacker))
            
g_iDmg[attacker] += floatround(damage)
        else 
g_iDmg[attacker] -= floatround(damage)
    }

PHP Code:
public EventDeathMsg()  
{  
    new 
killer read_data(1)  
    new 
victim read_data(2)  
    new 
is_hs read_data(3)  
      
    if(
killer != victim && killer && cs_get_user_team(killer) != cs_get_user_team(victim))  
    {  
        
g_iKills[killer]++;  
          
        if(
is_hs)  
            
g_iHS[killer]++;  
    }  
    else 
g_iKills[killer]--;  

Line 33 :
PHP Code:
if(cs_get_user_team(victim) != cs_get_user_team(attacker)) 
Line 45 :
PHP Code:
if(killer != victim && killer && cs_get_user_team(killer) != cs_get_user_team(victim)) 

Last edited by Id0x.; 01-04-2021 at 06:07.
Id0x. 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 14:07.


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