Raised This Month: $ Target: $400
 0% 

P1mps Plugin Error Help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
devilicioux
Veteran Member
Join Date: Jun 2013
Location: Delhi,India
Old 07-12-2013 , 05:33   P1mps Plugin Error Help
Reply With Quote #1

L 07/12/2013 - 11:291: Info (map "de_dust2") (file "addons/amxmodx/logs/error_20130712.log")
L 07/12/2013 - 11:291: [AMXX] Displaying debug trace (plugin "pimpspugfast.amxx")
L 07/12/2013 - 11:291: [AMXX] Run time error 4: index out of bounds
L 07/12/2013 - 11:291: [AMXX] [0] pimpspugfast.sma::enterLeaveRecord (line 2140)
L 07/12/2013 - 11:291: [AMXX] [1] pimpspugfast.sma::client_disconnect (line 1995)

Functions below.


new gLeftSteamIDs[33][128]

Below Bold Lines are the shown Error lines in functions and Declaration is above.

PHP Code:
public enterLeaveRecord(id)
{
    
get_user_authid(idgLeftSteamIDs[gLeftTimes], charsmax(gLeftSteamIDs[]))    //<-- Error Line
    
gLastTime[gLeftTimes++] = get_systime()

PHP Code:
public client_disconnect(id) {
    if ( 
is_user_bot(id) || is_user_hltv(id) || !( <= id <= gMaxPlayers ) )
        return 
PLUGIN_HANDLED
        
    
if ( id == gChangerID )
    {
        
gChangerID 0
        gChanging 
0
    
}
    
    else if ( 
id == gChangerID2 )
    {
        
gChangerID2 0
        gChanging2 
0
    
}
    
    if ( 
g_IsStarted )
    {
        
g_PugLeaves++
        
DidTK(id)
        
        if ( 
get_pcvar_num(cvar_RanksSystem) )
        {
            
gPoints[id] -= get_pcvar_num(cvar_LeavesMatchPoints)
            
enterLeaveRecord(id)                          //<---- Error Line
        
}
    }
        
    
CheckEmpty()
    
clear_list(id)
    
gDidPlayUntilEnd[id] = false
    g_LeftVotes
[id] = 0
    g_TotalKills
[id] = 0
    g_TotalDeaths
[id] = 0
    g_BombPlants
[id] = 0
    g_BombDefusions
[id] = 0
    
    
if ( g_givenChance[id] )
        
get_user_authid(idg_givenChanceSteamIDs[g_givenTimes++], charsmax(g_givenChanceSteamIDs[]))
    
g_givenChance[id] = false
    
    
if (g_bIsReady[id])
    {
        
gPlayersLeft++
    }
    
    
g_bIsReady[id] = false
    remove_task
(id)
    
remove_task(id+SET_CONST_TASKID)
    
    return 
PLUGIN_HANDLED


Last edited by devilicioux; 07-12-2013 at 05:34. Reason: Correction
devilicioux 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 06:20.


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