Raised This Month: $ Target: $400
 0% 

Run time error 4: index out of bounds


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
GhostMan
Senior Member
Join Date: Jun 2012
Old 01-25-2013 , 14:55   Run time error 4: index out of bounds
Reply With Quote #1

Quote:
L 01/25/2013 - 17:04:52: Start of error session.
L 01/25/2013 - 17:04:52: Info (map "deathrun_blueoffice") (file "addons/amxmodx/logs/error_20130125.log")
L 01/25/2013 - 17:04:52: [AMXX] Displaying debug trace (plugin "dr_shop.amxx")
L 01/25/2013 - 17:04:52: [AMXX] Run time error 4: index out of bounds
L 01/25/2013 - 17:04:52: [AMXX] [0] dr_shop.sma::Hook_Deathmessage (line 1012)
PHP Code:
/* --| Event when player died */
public Hook_Deathmessage()
{
    
/* --| If plugin is on... */
    
if( get_pcvar_numgDrShopOn ) == )
    {
        
/* --| Get the killer and attacker */
        
new killer read_data);
        new 
victim read_data);

        
/* --| If player has died with world / trigger_hurt */
        
if( killer == victim )
        {
            return 
PLUGIN_HANDLED;
        }
        
        
/* --| Setting killer points when killed a enemy */
        
if(get_user_flags(killer) & ADMIN_LEVEL_H)
        {
            
gKillerPointskiller ] += get_pcvar_numgKillerPointsCvar ) * 2;
        }
        else
        {
            
gKillerPointskiller ] += get_pcvar_numgKillerPointsCvar );
        }
    
        
/* --| Reseting items */
        
if(!is_user_bot(victim))
        {
            
HasHevictim ] = false;
            
HasBothGrenvictim ] = false;
            
HasSilentvictim ] = false;
            
HasHealthvictim ] = false;
            
HasArmorvictim ] = false;
            
HasSpeedvictim ] = false;
            
HasGravityvictim ] = false;
            
HasInvisvictim ] = false;
            
HasNoclipvictim ] = false;
            
HasJetvictim ] = false;
            
HasDeaglevictim ] = false;
            
HasLongJumpvictim ] = false;
            
HasGlowvictim ] = false;
            
HasNVGvictim ] = false;
            
            
set_user_gravityvictim1.0 );    
            
set_user_maxspeedvictim0.0 );
            
set_user_footstepsvictim);
            
set_user_noclipvictim);
            
set_user_renderingvictim );
            
set_user_nvgvictim);
            
remove_user_nvgvictim );
            
remove_taskvictim );
        }
    }
    
    return 
PLUGIN_CONTINUE;

1012 line
PHP Code:
            HasHevictim ] = false
http://forums.alliedmods.net/showthread.php?t=87536
GhostMan 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 20:34.


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