From c8bd4bb169d2205cd9c83a29898d95aa07e7e7cd Mon Sep 17 00:00:00 2001 From: Adam Richard <39578558+AdamRichard21st@users.noreply.github.com> Date: Tue, 30 Apr 2019 00:59:15 -0700 Subject: [PATCH] Fix string incorrectly formatted in CS Misc Stats plugin (#704) Recently, I got those below errors on logs: ``` String formatted incorrectly - parameter 12 (total 12) L 04/29/2019 - 23:24:40: [AMXX] Displaying debug trace (plugin "miscstats.amxx", version "1.8.3-dev+5154") L 04/29/2019 - 23:24:40: [AMXX] Run time error 25: parameter error L 04/29/2019 - 23:24:40: [AMXX] [0] miscstats.sma::checkKills (line 922) ``` It just looks like `"RAMPAGE!!! %s^n%L %d %L (%d hs)"` misses last format rule, which should be `"%L"` pointing to `HS` lang key. --- plugins/cstrike/miscstats.sma | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/cstrike/miscstats.sma b/plugins/cstrike/miscstats.sma index c3ac3db0fc..4107e44fec 100755 --- a/plugins/cstrike/miscstats.sma +++ b/plugins/cstrike/miscstats.sma @@ -91,7 +91,7 @@ new g_MultiKillMsg[7][] = "Multi-Kill! %s^n%L %d %L (%d %L)", "Ultra-Kill!!! %s^n%L %d %L (%d %L)", "%s IS ON A KILLING SPREE!!!^n%L %d %L (%d %L)", - "RAMPAGE!!! %s^n%L %d %L (%d hs)", + "RAMPAGE!!! %s^n%L %d %L (%d %L)", "%s IS UNSTOPPABLE!!!^n%L %d %L (%d %L)", "%s IS A MONSTER!^n%L %d %L (%d %L)", "%s IS GODLIKE!!!!^n%L %d %L (%d %L)"