From 8b9c107a038a0d333cc68939c5ef8faf38e4666e Mon Sep 17 00:00:00 2001 From: Freeman-AM Date: Sat, 11 Oct 2014 14:31:56 +0200 Subject: [PATCH] Stats: Replace len hardcoded contents by sizeof + fix typo error in previous commit --- plugins/dod/stats.sma | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/dod/stats.sma b/plugins/dod/stats.sma index 3400f2a5..bfa29608 100755 --- a/plugins/dod/stats.sma +++ b/plugins/dod/stats.sma @@ -678,7 +678,7 @@ public client_death(killer,victim,wpnindex,hitplace,TK) new param[2] param[0] = killer param[1] = g_multiKills[killer][0] - set_task( 4.0 + float( param[1] ) ,"checkKills",0,param,2) + set_task( 4.0 + float( param[1] ) ,"checkKills",0,param,sizeof(param)) } if ( xmod_is_melee_wpn(wpnindex) && ( KnifeKill || KnifeKillSound ) ){ @@ -989,7 +989,7 @@ public cmdTop15(id) { } getTop15_steam(id) new g_Top[16] - format(g_Top,charmax(g_Top),"%L",id,"TOPX",get_cvar_num("dodstats_topvalue")) + format(g_Top,charsmax(g_Top),"%L",id,"TOPX",get_cvar_num("dodstats_topvalue")) show_motd(id,g_Buffer,g_Top) return PLUGIN_CONTINUE