I have a strange error in a plugin, only happen few times a week.
Anybody have any clue on the reason ?
Code:
SZ_GetSpace: overflow on netchan->message
SZ_GetSpace: overflow on netchan->message
L 06/12/2009 - 20:17:11: [AMXX] Displaying debug trace (plugin "kz_misc.amxx")
L 06/12/2009 - 20:17:11: [AMXX] Run time error 3: stack error
L 06/12/2009 - 20:17:11: [AMXX] Displaying debug trace (plugin "kz_misc.amxx")
L 06/12/2009 - 20:17:11: [AMXX] Run time error 3: stack error
L 06/12/2009 - 20:17:11: [AMXX] Displaying debug trace (plugin "kz_misc.amxx")
L 06/12/2009 - 20:17:11: [AMXX] Run time error 3: stack error
L 06/12/2009 - 20:17:11: [AMXX] Displaying debug trace (plugin "kz_misc.amxx")
L 06/12/2009 - 20:17:11: [AMXX] Run time error 3: stack error
L 06/12/2009 - 20:17:11: [AMXX] Displaying debug trace (plugin "kz_misc.amxx")
L 06/12/2009 - 20:17:11: [AMXX] Run time error 3: stack error
L 06/12/2009 - 20:17:11: [AMXX] Displaying debug trace (plugin "kz_misc.amxx")
L 06/12/2009 - 20:17:11: [AMXX] Run time error 3: stack error
L 06/12/2009 - 20:17:11: [AMXX] Displaying debug trace (plugin "kz_misc.amxx")
L 06/12/2009 - 20:17:11: [AMXX] Run time error 3: stack error
L 06/12/2009 - 20:17:11: [AMXX] Displaying debug trace (plugin "kz_misc.amxx")
L 06/12/2009 - 20:17:11: [AMXX] Run time error 3: stack error
L 06/12/2009 - 20:17:11: [AMXX] Displaying debug trace (plugin "kz_misc.amxx")
L 06/12/2009 - 20:17:11: [AMXX] Run time error 3: stack error
L 06/12/2009 - 20:17:11: [AMXX] Displaying debug trace (plugin "kz_misc.amxx")
L 06/12/2009 - 20:17:11: [AMXX] Run time error 3: stack error
L 06/12/2009 - 20:17:11: [AMXX] Displaying debug trace (plugin "kz_misc.amxx")
L 06/12/2009 - 20:17:11: [AMXX] Run time error 5: memory access
L 06/12/2009 - 20:17:11: [AMXX] [0] comp_zkz_misc.sma::Player_Killed (line 273)
L 06/12/2009 - 20:17:11: [AMXX] Displaying debug trace (plugin "kz_misc.amxx")
L 06/12/2009 - 20:17:11: [AMXX] Run time error 3: stack error
SZ_GetSpace: overflow on netchan->message
SZ_GetSpace: overflow on netchan->message
L 06/12/2009 - 20:17:11: FATAL ERROR (shutting down): SZ_GetSpace: overflow without FSB_ALLOWOVERFLOW set on Server Spectator Buffer
FATAL ERROR (shutting down): SZ_GetSpace: overflow without FSB_ALLOWOVERFLOW set on Server Spectator Buffer
Line 273 highlighted.
Code:
public Player_Killed(id, iKiller)
{
if( IsPlayer(id) && fm_cs_get_user_team(id) == TEAM_CT )
{
message_begin(MSG_ONE_UNRELIABLE, gmsgDeathMsg, _, id)
write_byte(id)
write_byte(id)
write_byte(1)
write_string("knife")
message_end()
message_begin(MSG_ONE_UNRELIABLE, gmsgScoreAttrib, _, id)
write_byte(id)
write_byte(0)
message_end()
ExecuteHamB(Ham_Spawn, id)
return HAM_SUPERCEDE
}
return HAM_IGNORED
}
__________________