08-19-2021, 04:15 AM
try modifying where its setting the value instead of checking for an equal condition maybe that will help fix it.
Look for this in reza's code
if (g_iCountry == RUSSIA)
nBoxWidth = m_pUIDrawPort->GetTextWidth(myNick) + 13;
else
if (g_iCountry = THAILAND)
{
nBoxWidth = FindThaiLen(myNick) + 13;
}else
Modify it to this
if (g_iCountry == RUSSIA)
nBoxWidth = m_pUIDrawPort->GetTextWidth(myNick) + 13;
else
if (g_iCountry == THAILAND)
{
nBoxWidth = FindThaiLen(myNick) + 13;
}else
I believe thats why its setting the country to THAILAND because this statment was mising an == sign . == checks if true = assigns the value

