ps.dta change automaticaly to g_iCountry=(INDEX)3;
#1

Hey bros!

My client switches from nation 8 to nation 3 in ps.dta every time I close it and open it again,  anyone knows how i can fix this?

Thx for advance.

#2

did u compiled in the right language?

#3

he is using my files lmao 

#4


1 hour ago, Joker said:




did u compiled in the right language?




Yeah yeah... ? 

#5


15 minutes ago, Reza said:




he is using my files lmao 




Hey, Reza! I downloaded your files here on the forum, is there any problem using them?

#6

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 



Forum Jump:


Users browsing this thread: 1 Guest(s)