case sensitivity

This commit is contained in:
Dennis Felsing 2018-01-15 09:10:20 +01:00
parent 272e14357c
commit 31bbbaf512

View file

@ -1174,7 +1174,7 @@ bool CSqlScore::ShowPointsThread(CSqlServer* pSqlServer, const CSqlData *pGameDa
{
pSqlServer->GetResults()->next();
int count = (int)pSqlServer->GetResults()->getInt("Points");
int rank = (int)pSqlServer->GetResults()->getInt("rank");
int rank = (int)pSqlServer->GetResults()->getInt("Rank");
str_format(aBuf, sizeof(aBuf), "%d. %s Points: %d, requested by %s", rank, pSqlServer->GetResults()->getString("Name").c_str(), count, pData->m_aRequestingPlayer);
pData->GameServer()->SendChat(-1, CGameContext::CHAT_ALL, aBuf, pData->m_ClientID);
}
@ -1227,7 +1227,7 @@ bool CSqlScore::ShowTopPointsThread(CSqlServer* pSqlServer, const CSqlData *pGam
while(pSqlServer->GetResults()->next())
{
str_format(aBuf, sizeof(aBuf), "%d. %s Points: %d", pSqlServer->GetResults()->getInt("rank"), pSqlServer->GetResults()->getString("Name").c_str(), pSqlServer->GetResults()->getInt("Points"));
str_format(aBuf, sizeof(aBuf), "%d. %s Points: %d", pSqlServer->GetResults()->getInt("Rank"), pSqlServer->GetResults()->getString("Name").c_str(), pSqlServer->GetResults()->getInt("Points"));
pData->GameServer()->SendChatTarget(pData->m_ClientID, aBuf);
}
pData->GameServer()->SendChatTarget(pData->m_ClientID, "-------------------------------");