|
|
|
@ -794,7 +794,7 @@ bool CScoreWorker::ShowRank(IDbConnection *pSqlServer, const ISqlData *pGameData
|
|
|
|
|
if(g_Config.m_SvHideScore)
|
|
|
|
|
{
|
|
|
|
|
str_format(pResult->m_Data.m_aaMessages[0], sizeof(pResult->m_Data.m_aaMessages[0]),
|
|
|
|
|
"Your time: %s, better than %d%%", aBuf, BetterThanPercent);
|
|
|
|
|
"你的用时: %s, 高出 %d%%", aBuf, BetterThanPercent);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
@ -803,13 +803,13 @@ bool CScoreWorker::ShowRank(IDbConnection *pSqlServer, const ISqlData *pGameData
|
|
|
|
|
if(str_comp_nocase(pData->m_aRequestingPlayer, pData->m_aName) == 0)
|
|
|
|
|
{
|
|
|
|
|
str_format(pResult->m_Data.m_aaMessages[0], sizeof(pResult->m_Data.m_aaMessages[0]),
|
|
|
|
|
"%s - %s - better than %d%%",
|
|
|
|
|
"%s - %s - 高出 %d%%",
|
|
|
|
|
pData->m_aName, aBuf, BetterThanPercent);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
str_format(pResult->m_Data.m_aaMessages[0], sizeof(pResult->m_Data.m_aaMessages[0]),
|
|
|
|
|
"%s - %s - better than %d%% - requested by %s",
|
|
|
|
|
"%s - %s - 高出 %d%% - requested by %s",
|
|
|
|
|
pData->m_aName, aBuf, BetterThanPercent, pData->m_aRequestingPlayer);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -891,20 +891,20 @@ bool CScoreWorker::ShowTeamRank(IDbConnection *pSqlServer, const ISqlData *pGame
|
|
|
|
|
if(g_Config.m_SvHideScore)
|
|
|
|
|
{
|
|
|
|
|
str_format(pResult->m_Data.m_aaMessages[0], sizeof(pResult->m_Data.m_aaMessages[0]),
|
|
|
|
|
"Your team time: %s, better than %d%%", aBuf, BetterThanPercent);
|
|
|
|
|
"你的队伍用时: %s, 高出 %d%%", aBuf, BetterThanPercent);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
pResult->m_MessageKind = CScorePlayerResult::ALL;
|
|
|
|
|
str_format(pResult->m_Data.m_aaMessages[0], sizeof(pResult->m_Data.m_aaMessages[0]),
|
|
|
|
|
"%d. %s Team time: %s, better than %d%%, requested by %s",
|
|
|
|
|
"%d. %s 队伍用时: %s, 高出 %d%%, %s 要求时间",
|
|
|
|
|
Rank, aFormattedNames, aBuf, BetterThanPercent, pData->m_aRequestingPlayer);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
str_format(pResult->m_Data.m_aaMessages[0], sizeof(pResult->m_Data.m_aaMessages[0]),
|
|
|
|
|
"%s has no team ranks", pData->m_aName);
|
|
|
|
|
"%s 没有队伍等级", pData->m_aName);
|
|
|
|
|
}
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
@ -946,7 +946,7 @@ bool CScoreWorker::ShowTop(IDbConnection *pSqlServer, const ISqlData *pGameData,
|
|
|
|
|
|
|
|
|
|
// show top
|
|
|
|
|
int Line = 0;
|
|
|
|
|
str_copy(pResult->m_Data.m_aaMessages[Line], "------------ Global Top ------------", sizeof(pResult->m_Data.m_aaMessages[Line]));
|
|
|
|
|
str_copy(pResult->m_Data.m_aaMessages[Line], "------------ 全球排名 ------------", sizeof(pResult->m_Data.m_aaMessages[Line]));
|
|
|
|
|
Line++;
|
|
|
|
|
|
|
|
|
|
char aTime[32];
|
|
|
|
@ -960,7 +960,7 @@ bool CScoreWorker::ShowTop(IDbConnection *pSqlServer, const ISqlData *pGameData,
|
|
|
|
|
str_time_float(Time, TIME_HOURS_CENTISECS, aTime, sizeof(aTime));
|
|
|
|
|
int Rank = pSqlServer->GetInt(3);
|
|
|
|
|
str_format(pResult->m_Data.m_aaMessages[Line], sizeof(pResult->m_Data.m_aaMessages[Line]),
|
|
|
|
|
"%d. %s Time: %s", Rank, aName, aTime);
|
|
|
|
|
"%d. %s 用时: %s", Rank, aName, aTime);
|
|
|
|
|
|
|
|
|
|
Line++;
|
|
|
|
|
}
|
|
|
|
@ -977,7 +977,7 @@ bool CScoreWorker::ShowTop(IDbConnection *pSqlServer, const ISqlData *pGameData,
|
|
|
|
|
pSqlServer->BindInt(3, 3);
|
|
|
|
|
|
|
|
|
|
str_format(pResult->m_Data.m_aaMessages[Line], sizeof(pResult->m_Data.m_aaMessages[Line]),
|
|
|
|
|
"------------ %s Top ------------", pData->m_aServer);
|
|
|
|
|
"------------ %s 排行榜 ------------", pData->m_aServer);
|
|
|
|
|
Line++;
|
|
|
|
|
|
|
|
|
|
// show top
|
|
|
|
@ -989,7 +989,7 @@ bool CScoreWorker::ShowTop(IDbConnection *pSqlServer, const ISqlData *pGameData,
|
|
|
|
|
str_time_float(Time, TIME_HOURS_CENTISECS, aTime, sizeof(aTime));
|
|
|
|
|
int Rank = pSqlServer->GetInt(3);
|
|
|
|
|
str_format(pResult->m_Data.m_aaMessages[Line], sizeof(pResult->m_Data.m_aaMessages[Line]),
|
|
|
|
|
"%d. %s Time: %s", Rank, aName, aTime);
|
|
|
|
|
"%d. %s 用时: %s", Rank, aName, aTime);
|
|
|
|
|
Line++;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -1033,7 +1033,7 @@ bool CScoreWorker::ShowTeamTop5(IDbConnection *pSqlServer, const ISqlData *pGame
|
|
|
|
|
|
|
|
|
|
// show teamtop5
|
|
|
|
|
int Line = 0;
|
|
|
|
|
str_copy(paMessages[Line++], "------- Team Top 5 -------", sizeof(paMessages[Line]));
|
|
|
|
|
str_copy(paMessages[Line++], "------- 队伍前5排行榜 -------", sizeof(paMessages[Line]));
|
|
|
|
|
|
|
|
|
|
bool End;
|
|
|
|
|
if(pSqlServer->Step(&End, pError, ErrorSize))
|
|
|
|
@ -1130,7 +1130,7 @@ bool CScoreWorker::ShowPlayerTeamTop5(IDbConnection *pSqlServer, const ISqlData
|
|
|
|
|
{
|
|
|
|
|
// show teamtop5
|
|
|
|
|
int Line = 0;
|
|
|
|
|
str_copy(paMessages[Line++], "------- Team Top 5 -------", sizeof(paMessages[Line]));
|
|
|
|
|
str_copy(paMessages[Line++], "------- 队伍前5排行榜 -------", sizeof(paMessages[Line]));
|
|
|
|
|
|
|
|
|
|
for(Line = 1; Line < 6; Line++) // print
|
|
|
|
|
{
|
|
|
|
@ -1237,7 +1237,7 @@ bool CScoreWorker::ShowTimes(IDbConnection *pSqlServer, const ISqlData *pGameDat
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
str_copy(paMessages[0], "------------- Last Times -------------", sizeof(paMessages[0]));
|
|
|
|
|
str_copy(paMessages[0], "------------- 最后一次的时间 -------------", sizeof(paMessages[0]));
|
|
|
|
|
int Line = 1;
|
|
|
|
|
|
|
|
|
|
do
|
|
|
|
@ -1259,10 +1259,10 @@ bool CScoreWorker::ShowTimes(IDbConnection *pSqlServer, const ISqlData *pGameDat
|
|
|
|
|
{
|
|
|
|
|
if(Stamp == 0) // stamp is 00:00:00 cause it's an old entry from old times where there where no stamps yet
|
|
|
|
|
str_format(paMessages[Line], sizeof(paMessages[Line]),
|
|
|
|
|
"%s%s, don't know how long ago", aServerFormatted, aBuf);
|
|
|
|
|
"%s%s, 许久以前", aServerFormatted, aBuf);
|
|
|
|
|
else
|
|
|
|
|
str_format(paMessages[Line], sizeof(paMessages[Line]),
|
|
|
|
|
"%s%s ago, %s", aServerFormatted, aAgoString, aBuf);
|
|
|
|
|
"%s%s 前, %s", aServerFormatted, aAgoString, aBuf);
|
|
|
|
|
}
|
|
|
|
|
else // last 5 times of the server
|
|
|
|
|
{
|
|
|
|
@ -1271,12 +1271,12 @@ bool CScoreWorker::ShowTimes(IDbConnection *pSqlServer, const ISqlData *pGameDat
|
|
|
|
|
if(Stamp == 0) // stamp is 00:00:00 cause it's an old entry from old times where there where no stamps yet
|
|
|
|
|
{
|
|
|
|
|
str_format(paMessages[Line], sizeof(paMessages[Line]),
|
|
|
|
|
"%s%s, %s, don't know when", aServerFormatted, aName, aBuf);
|
|
|
|
|
"%s%s, %s, 许久之前", aServerFormatted, aName, aBuf);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
str_format(paMessages[Line], sizeof(paMessages[Line]),
|
|
|
|
|
"%s%s, %s ago, %s", aServerFormatted, aName, aAgoString, aBuf);
|
|
|
|
|
"%s%s, %s 前, %s", aServerFormatted, aName, aAgoString, aBuf);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
Line++;
|
|
|
|
@ -1361,7 +1361,7 @@ bool CScoreWorker::ShowTopPoints(IDbConnection *pSqlServer, const ISqlData *pGam
|
|
|
|
|
pSqlServer->BindInt(2, LimitStart);
|
|
|
|
|
|
|
|
|
|
// show top points
|
|
|
|
|
str_copy(paMessages[0], "-------- Top Points --------", sizeof(paMessages[0]));
|
|
|
|
|
str_copy(paMessages[0], "-------- 最高分数 --------", sizeof(paMessages[0]));
|
|
|
|
|
|
|
|
|
|
bool End = false;
|
|
|
|
|
int Line = 1;
|
|
|
|
|