From 1161b5ee7e52ef03c3201e4ba146e9cb70723979 Mon Sep 17 00:00:00 2001 From: Steve Dudenhoeffer Date: Fri, 30 Mar 2007 13:22:12 +0000 Subject: [PATCH] Fix for amb91: miststats buffer was too small for some language translations. Not sure if this affects other mods, need to look through their stats stuff. --- plugins/cstrike/miscstats.sma | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/cstrike/miscstats.sma b/plugins/cstrike/miscstats.sma index ca2f2ec7..d9a03353 100755 --- a/plugins/cstrike/miscstats.sma +++ b/plugins/cstrike/miscstats.sma @@ -470,7 +470,7 @@ public client_death(killer, victim, wpnindex, hitplace, TK) { if (HeadShotKill && wpnindex) { - new killer_name[32], victim_name[32], weapon_name[32], message[128], players[32], pnum + new killer_name[32], victim_name[32], weapon_name[32], message[256], players[32], pnum xmod_get_wpnname(wpnindex, weapon_name, 31) get_user_name(killer, killer_name, 31) @@ -479,11 +479,11 @@ public client_death(killer, victim, wpnindex, hitplace, TK) for (new i = 0; i < pnum; i++) { - format(message, 127, "%L", players[i], g_HeadShots[random_num(0, 6)]) + format(message, sizeof(message)-1, "%L", players[i], g_HeadShots[random_num(0, 6)]) - replace(message, 127, "$vn", victim_name) - replace(message, 127, "$wn", weapon_name) - replace(message, 127, "$kn", killer_name) + replace(message, sizeof(message)-1, "$vn", victim_name) + replace(message, sizeof(message)-1, "$wn", weapon_name) + replace(message, sizeof(message)-1, "$kn", killer_name) set_hudmessage(100, 100, 255, -1.0, 0.30, 0, 6.0, 6.0, 0.5, 0.15, -1) ShowSyncHudMsg(players[i], g_announce_sync, "%s", message)