Raised This Month: $ Target: $400
 0% 

How to understood this error?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
PWA
Junior Member
Join Date: May 2010
Old 06-13-2010 , 16:58   How to understood this error?
Reply With Quote #1

PHP Code:
L 06/13/2010 23:54:56: [CSTRIKEPlayer out of range (0)
L 06/13/2010 23:54:56: [AMXXDisplaying debug trace (plugin "idday.amxx")
L 06/13/2010 23:54:56: [AMXXRun time error 10native error (native "cs_get_user_team")
L 06/13/2010 23:54:56: [AMXX]    [0idday.sma::Hook_Deathmessage (line 143
This is log from server, what he show me!

Line 143

PHP Code:
        if( cs_get_user_team(killer) == CS_TEAM_T && cs_get_user_team(victim) == CS_TEAM_CT
Full code from that line:
PHP Code:
public Hook_Deathmessage()
{
    {
        
/* --| Get the killer and attacker */
        
new killer read_data);
        new 
victim read_data);
        new 
headshot read_data);

        
/* --| If player has died with world / trigger_hurt */
        
if( killer == victim )
        {
            return 
PLUGIN_HANDLED;
        }
        
        
/* --| Setting killer points when killed a enemy */
        
if( cs_get_user_team(killer) == CS_TEAM_T && cs_get_user_team(victim) == CS_TEAM_CT)
        {
            
playerpoints[killer] += get_pcvar_num(cvar_killpoints)
            
            if(
headshot)
            
playerpoints[killer] += get_pcvar_num(cvar_headshotpoints);
        }
        if( 
cs_get_user_team(killer) == CS_TEAM_CT && cs_get_user_team(victim) == CS_TEAM_T)
        {
            
playerpoints[killer] += get_pcvar_num(cvar_killpointsct)
        
            if(
headshot)
            
playerpoints[killer] += get_pcvar_num(cvar_headshotpointsct);
        }        
        
SaveData(killer)
        
        
set_user_gravityvictim1.0 );    
        
set_user_maxspeedvictim0.0 );
    }
    
    return 
PLUGIN_CONTINUE;

Help me, to fix this sh*t x)
PWA 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:58.


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