Raised This Month: $ Target: $400
 0% 

Little problem with cs_get_user_team


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
KadiR
Unnecessary Member
Join Date: Aug 2008
Location: Zürich / Switzerland
Old 05-31-2010 , 17:27   Little problem with cs_get_user_team
Reply With Quote #1

I can't exactly find where the error is, but this is the log:
Quote:
L 05/31/2010 - 22:07:17: [CSTRIKE] Player out of range (12
L 05/31/2010 - 22:07:17: [AMXX] Displaying debug trace (plugin "freerun.amxx")
L 05/31/2010 - 22:07:17: [AMXX] Run time error 10: native error (native "cs_get_user_team")
L 05/31/2010 - 22:07:17: [AMXX] [0] freerun.sma::Kill_Ct (line 226)
Code:

PHP Code:
register_event("DeathMsg""Kill_Ct""a""1>0"); 
PHP Code:
public Kill_Ct() 
{
    if (!
get_pcvar_num(g_KillHP))
        return;
    
    new 
killer read_data(1);
    new 
victim read_data(2);
    
    if ((
killer != victim && g_bFreerun && g_bGiveHealthToT )
    && 
cs_get_user_team(victim) == CS_TEAM_CT
    
&& cs_get_user_team(killer) == CS_TEAM_T)
    {
        
set_user_health(killer1);
        
client_cmdkiller"spk ^"%s^""KIT_SOUND );
    }

KadiR 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 05:23.


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