mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-24 13:55:36 +03:00
Add UTF-8 support in /top15 MOTD (bug 5825, r=me)
This commit is contained in:
parent
84f7f744b3
commit
ae91c6f5ad
@ -746,7 +746,7 @@ format_top15(sBuffer[MAX_BUFFER_LENGTH + 1])
|
||||
ucfirst(lEff)
|
||||
ucfirst(lAcc)
|
||||
|
||||
iLen = format(sBuffer, MAX_BUFFER_LENGTH, "<body bgcolor=#000000><font color=#FFB000><pre>")
|
||||
iLen = format(sBuffer, MAX_BUFFER_LENGTH, "<meta charset=utf-8><body bgcolor=#000000><font color=#FFB000><pre>")
|
||||
iLen += format(sBuffer[iLen], MAX_BUFFER_LENGTH - iLen, "%2s %-22.22s %6s %6s %6s %6s %4s %4s %4s^n", "#", "Nick", lKills, lDeaths, lHits, lShots, "HS", lEff, lAcc)
|
||||
|
||||
for (new i = 0; i < iMax && MAX_BUFFER_LENGTH - iLen > 0; i++)
|
||||
|
@ -993,7 +993,7 @@ public cmdTop15(id) {
|
||||
getTop15_steam(id){
|
||||
new stats[9], body[8], name[32]
|
||||
|
||||
new pos = copy(g_Buffer,2047,"<html><head><style type=^"text/css^">pre{color:#FFB000;}body{background:Black;margin-left:8px;margin-top:0px;color:#FFB000;}</style></head><pre><body>")
|
||||
new pos = copy(g_Buffer,2047,"<html><head><meta charset=utf-8><style type=^"text/css^">pre{color:#FFB000;}body{background:Black;margin-left:8px;margin-top:0px;color:#FFB000;}</style></head><pre><body>")
|
||||
|
||||
pos += format(g_Buffer[pos],2047-pos,"<table><tr><td>#</td><td>%L</td><td>%L</td><td>%L</td><td>%L</td><td>%L</td><td>%L</td><td>%L</td><td>%L</td></tr>",
|
||||
id,"M_NICK",id,"M_KILLS",id,"M_DEATHS",id,"M_SCORE",id,"M_TKS",id,"M_HITS",id,"M_SHOTS",id,"M_HS")
|
||||
|
Loading…
Reference in New Issue
Block a user