L 07/12/2013 - 11:29

1: Info (map "de_dust2") (file "addons/amxmodx/logs/error_20130712.log")
L 07/12/2013 - 11:29

1: [AMXX] Displaying debug trace (plugin "pimpspugfast.amxx")
L 07/12/2013 - 11:29

1: [AMXX] Run time error 4: index out of bounds
L 07/12/2013 - 11:29

1: [AMXX] [0] pimpspugfast.sma::enterLeaveRecord (line 2140)
L 07/12/2013 - 11:29

1: [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(id, gLeftSteamIDs[gLeftTimes], charsmax(gLeftSteamIDs[])) //<-- Error Line
gLastTime[gLeftTimes++] = get_systime()
}
PHP Code:
public client_disconnect(id) {
if ( is_user_bot(id) || is_user_hltv(id) || !( 1 <= 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(id, g_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
}