From 9a1b7b0a6351b6c39c0195d6d43b8ce2fbc90c24 Mon Sep 17 00:00:00 2001 From: Freeman-AM Date: Sun, 21 Sep 2014 00:42:03 +0200 Subject: [PATCH 1/2] Statsx: Add full UTF-8 symbols support --- plugins/cstrike/statsx.sma | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/cstrike/statsx.sma b/plugins/cstrike/statsx.sma index f83ab78f..6bc985bf 100755 --- a/plugins/cstrike/statsx.sma +++ b/plugins/cstrike/statsx.sma @@ -749,7 +749,7 @@ format_rankstats(id, sBuffer[MAX_BUFFER_LENGTH + 1], iMyId = 0) ucfirst(lAcc) iRankPos = get_user_stats(id, izStats, izBody) - iLen = formatex(sBuffer, charsmax(sBuffer), "
")
+	iLen = formatex(sBuffer, charsmax(sBuffer), "
")
 	iLen += formatex(sBuffer[iLen], charsmax(sBuffer) - iLen, "%L %L^n^n", id, (!iMyId || iMyId == id) ? "YOUR" : "PLAYERS", id, "RANK_IS", iRankPos, get_statsnum())
 	iLen += formatex(sBuffer[iLen], charsmax(sBuffer) - iLen, "%6s: %d  (%d with hs)^n%6s: %d^n%6s: %d^n%6s: %d^n%6s: %d^n%6s: %0.2f%%^n%6s: %0.2f%%^n^n",
 					lKills, izStats[STATS_KILLS], izStats[STATS_HS], lDeaths, izStats[STATS_DEATHS], lHits, izStats[STATS_HITS], lShots, izStats[STATS_SHOTS],
@@ -789,7 +789,7 @@ format_stats(id, sBuffer[MAX_BUFFER_LENGTH + 1])
 
 	get_user_wstats(id, 0, izStats, izBody)
 
-	iLen = formatex(sBuffer, charsmax(sBuffer), "
")
+	iLen = formatex(sBuffer, charsmax(sBuffer), "
")
 	iLen += formatex(sBuffer[iLen], charsmax(sBuffer) - iLen, "%6s: %d  (%d with hs)^n%6s: %d^n%6s: %d^n%6s: %d^n%6s: %d^n%6s: %0.2f%%^n%6s: %0.2f%%^n^n",
 					lKills, izStats[STATS_KILLS], izStats[STATS_HS], lDeaths, izStats[STATS_DEATHS], lHits, izStats[STATS_HITS], lShots, izStats[STATS_SHOTS],
 					lDamage, izStats[STATS_DAMAGE], lEff, effec(izStats), lAcc, accuracy(izStats))

From 83873aa7f702d9699861ba416fec26656b031365 Mon Sep 17 00:00:00 2001
From: Freeman-AM 
Date: Sun, 21 Sep 2014 02:39:09 +0200
Subject: [PATCH 2/2] Stats: Add full UTF-8 symbols support

---
 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 43b77717..59421fd6 100755
--- a/plugins/dod/stats.sma
+++ b/plugins/dod/stats.sma
@@ -922,7 +922,7 @@ displayStats_steam(id,dest) {
  new name[MAX_NAME_LENGTH], stats[9], body[8]
  get_user_wstats(id,0,stats,body)
 
- new pos = copy(g_Buffer,2047,"
")
+ new pos = copy(g_Buffer,2047,"
")
  pos += format(g_Buffer[pos],2047-pos,"",
                dest,"M_KILLS",dest,"M_DEATHS",dest,"M_SCORE",dest,"M_TKS",dest,"M_HITS",dest,"M_SHOTS",dest,"M_HS")
 
@@ -961,7 +961,7 @@ displayRank_steam(id,dest) {
  new name[MAX_NAME_LENGTH], stats[9], body[8]
  new rank_pos = get_user_stats(id,stats,body)
 
- new pos = copy(g_Buffer,2047,"
")
+ new pos = copy(g_Buffer,2047,"
")
 
  pos += format(g_Buffer[pos],2047-pos,
                "
%L%L%L%L%L%L%L
",dest,"M_KILLS",dest,"M_DEATHS",dest,"M_SCORE",dest,"M_TKS",dest,"M_HITS",dest,"M_SHOTS",dest,"M_HS")
%L%L%L%L%L%L%L