R1KO / VIP-Core

GNU General Public License v3.0
50 stars 34 forks source link

fix(AdminMenu): check if client lang doesnt return LangError #110

Closed maxime1907 closed 2 years ago

maxime1907 commented 2 years ago

If the client lang returns an error, it will display LangError instead of displaying it the server language

R1KO commented 2 years ago
hKv.GetString(szClientLang, SZF(szBuffer));
if (!szBuffer[0])
{
    hKv.GetString(szServerLang, SZF(szBuffer));
}
if (!szBuffer[0])
{
    strcopy(szServerLang, SZF(szBuffer), "LangError");
}
maxime1907 commented 2 years ago
hKv.GetString(szClientLang, SZF(szBuffer));
if (!szBuffer[0])
{
    hKv.GetString(szServerLang, SZF(szBuffer));
}
if (!szBuffer[0])
{
    strcopy(szServerLang, SZF(szBuffer), "LangError");
}

Ah okay nice i will change it like this