Hey guskis i have this new debug log error with the ttt_defuse_system.amxx in my server check it out:
PHP Code:
L 03/31/2015 - 16:46:19: Start of error session.
L 03/31/2015 - 16:46:19: Info (map "de_westwood_big_snow") (file "addons/amxmodx/logs/error_20150331.log")
L 03/31/2015 - 16:46:19: [AMXX] Displaying debug trace (plugin "ttt_defuse_system.amxx", version "2.5.2")
L 03/31/2015 - 16:46:19: [AMXX] Run time error 4: index out of bounds
L 03/31/2015 - 16:46:19: [AMXX] [0] ttt_defuse_system.sma::c4_get (line 257)
L 03/31/2015 - 16:46:19: [AMXX] [1] ttt_defuse_system.sma::get_c4_info (line 162)
L 03/31/2015 - 16:46:19: [AMXX] [2] ttt_defuse_system.sma::ttt_wires_show (line 113)
L 03/31/2015 - 16:46:19: [AMXX] [3] ttt_defuse_system.sma::Ham_Use_pre (line 87)
L 03/31/2015 - 16:46:20: [AMXX] Displaying debug trace (plugin "ttt_defuse_system.amxx", version "2.5.2")
L 03/31/2015 - 16:46:20: [AMXX] Run time error 4: index out of bounds
L 03/31/2015 - 16:46:20: [AMXX] [0] ttt_defuse_system.sma::c4_get (line 257)
L 03/31/2015 - 16:46:20: [AMXX] [1] ttt_defuse_system.sma::get_c4_info (line 162)
L 03/31/2015 - 16:46:20: [AMXX] [2] ttt_defuse_system.sma::ttt_wires_show (line 113)
L 03/31/2015 - 16:46:20: [AMXX] [3] ttt_defuse_system.sma::Ham_Use_pre (line 87)
I dont know what is that, or if it is dangerous, hope u can fix it or tell me what is this, here are the lines on the .sma from the log error debug:
Line 257:
PHP Code:
stock c4_get(c4)
{
for(new i = 0; i < MAX_C4; i++)
if(g_iC4Info[i][ENT] == c4)
return i;
return -1; // Line 257
}
Line 162:
PHP Code:
public get_c4_info(id, c4)
{
g_iPlayerC4[id] = c4;
new size = g_iC4Info[c4_get(c4)][WIRES]; // Line 162
random_right(id, size, g_iC4Info[c4_get(c4)][RIGHT]);
random_order(id, size);
}
Line 113:
PHP Code:
public ttt_wires_show(id, ent)
{
reset_all(id);
get_c4_info(id, ent); // Line 113
new param[1];
param[0] = ent;
set_task(1.0, "check_distance", id, param, 1, "b");
new size = g_iC4Info[c4_get(ent)][WIRES];
new menu = menu_create("\rWires", "ttt_wires_handler");
for(new i = 0; i < size; i++)
menu_additem(menu, g_szWireColors[g_iPlayerWires[id][0][i]], "", 0);
menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);
menu_setprop(menu, MPROP_NOCOLORS, 1);
menu_display(id, menu, 0);
return PLUGIN_HANDLED;
}
Line 87:
PHP Code:
public Ham_Use_pre(ent, id, idactivator, type, Float:value)
{
if(type != 2 || value != 1.0 || !is_user_alive(idactivator))
return HAM_IGNORED;
static Float:defuse_delay[33];
if(defuse_delay[idactivator] < get_gametime())
{
if(ttt_get_playerstate(id) != PC_TRAITOR)
{
defuse_delay[idactivator] = get_gametime() + 1.0;
ttt_wires_show(idactivator, ent); // Line 87
}
}
return HAM_SUPERCEDE;
}