fixed bug at29731
This commit is contained in:
parent
eafd402ead
commit
9bbb0df492
|
@ -740,6 +740,8 @@ format_top15(sBuffer[MAX_BUFFER_LENGTH + 1])
|
||||||
for (new i = 0; i < iMax && MAX_BUFFER_LENGTH - iLen > 0; i++)
|
for (new i = 0; i < iMax && MAX_BUFFER_LENGTH - iLen > 0; i++)
|
||||||
{
|
{
|
||||||
get_stats(i, izStats, izBody, t_sName, MAX_NAME_LENGTH)
|
get_stats(i, izStats, izBody, t_sName, MAX_NAME_LENGTH)
|
||||||
|
replace_all(t_sName, MAX_NAME_LENGTH, "<", "[")
|
||||||
|
replace_all(t_sName, MAX_NAME_LENGTH, ">", "]")
|
||||||
iLen += format(sBuffer[iLen], MAX_BUFFER_LENGTH - iLen, "%2d %-22.22s %6d %6d %6d %6d %4d %3.0f%% %3.0f%%^n", i + 1, t_sName, izStats[STATS_KILLS],
|
iLen += format(sBuffer[iLen], MAX_BUFFER_LENGTH - iLen, "%2d %-22.22s %6d %6d %6d %6d %4d %3.0f%% %3.0f%%^n", i + 1, t_sName, izStats[STATS_KILLS],
|
||||||
izStats[STATS_DEATHS], izStats[STATS_HITS], izStats[STATS_SHOTS], izStats[STATS_HS], effec(izStats), accuracy(izStats))
|
izStats[STATS_DEATHS], izStats[STATS_HITS], izStats[STATS_SHOTS], izStats[STATS_HS], effec(izStats), accuracy(izStats))
|
||||||
}
|
}
|
||||||
|
|
|
@ -1001,6 +1001,8 @@ getTop15_steam(id){
|
||||||
imax = itmax
|
imax = itmax
|
||||||
for(new a = 0; a < imax; ++a){
|
for(new a = 0; a < imax; ++a){
|
||||||
get_stats(a,stats,body,name,31);
|
get_stats(a,stats,body,name,31);
|
||||||
|
replace_all(name, 31, "<", "[")
|
||||||
|
replace_all(name, 31, ">", "]")
|
||||||
pos += format(g_Buffer[pos],2047-pos,"<tr><td>%d.</td><td>%s</td><td>%d</td><td>%d</td><td>%d</td><td>%d</td><td>%d</td><td>%d</td><td>%d</td></tr>^n",
|
pos += format(g_Buffer[pos],2047-pos,"<tr><td>%d.</td><td>%s</td><td>%d</td><td>%d</td><td>%d</td><td>%d</td><td>%d</td><td>%d</td><td>%d</td></tr>^n",
|
||||||
a+1,name,stats[0],stats[1],stats[7],stats[3],stats[5],stats[4],stats[2])
|
a+1,name,stats[0],stats[1],stats[7],stats[3],stats[5],stats[4],stats[2])
|
||||||
}
|
}
|
||||||
|
|
|
@ -272,6 +272,8 @@ getTop15(){
|
||||||
if (imax > 15) imax = 15
|
if (imax > 15) imax = 15
|
||||||
for(new a = 0; a < imax; ++a){
|
for(new a = 0; a < imax; ++a){
|
||||||
get_stats(a,stats,body,name,31)
|
get_stats(a,stats,body,name,31)
|
||||||
|
replace_all(name, 31, "<", "[")
|
||||||
|
replace_all(name, 31, ">", "]")
|
||||||
pos += format(g_Buffer[pos],2047-pos,"%2d. %-28.27s %d/%d %d %d/%d/%d^n",a+1,name,stats[0],stats[1],stats[3],stats[5],stats[4],stats[2])
|
pos += format(g_Buffer[pos],2047-pos,"%2d. %-28.27s %d/%d %d %d/%d/%d^n",a+1,name,stats[0],stats[1],stats[3],stats[5],stats[4],stats[2])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -215,6 +215,8 @@ getTop15(){
|
||||||
if (imax > 15) imax = 15
|
if (imax > 15) imax = 15
|
||||||
for(new a = 0; a < imax; ++a){
|
for(new a = 0; a < imax; ++a){
|
||||||
get_stats(a,stats,body,name,31)
|
get_stats(a,stats,body,name,31)
|
||||||
|
replace_all(name, 31, "<", "[")
|
||||||
|
replace_all(name, 31, ">", "]")
|
||||||
pos += format(g_Buffer[pos],2047-pos,"%2d. %-28.27s %d/%d %d %d/%d/%d^n",a+1,name,stats[0],stats[1],stats[3],stats[5],stats[4],stats[2])
|
pos += format(g_Buffer[pos],2047-pos,"%2d. %-28.27s %d/%d %d %d/%d/%d^n",a+1,name,stats[0],stats[1],stats[3],stats[5],stats[4],stats[2])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user