How to display online player count on server section
#7


6 minutes ago, Matt Hias said:




nothing changes for me.



here is an excerpt of my change



Does somebody has any idea?



 




if (pText = (CUIText*)pTmpItem->findUI("text_state"))
{
if( pChannelInfo->iPlayerNum == -1 )
{
pText->SetText(CTString(_S( 372, "Á¡°Ë" )));
pText->setFontColor(0x9400D6FF);
}
else if( pChannelInfo->iPlayerNum >= _cmiComm.cci_iFullUsers )
{
pText->SetText(CTString(_S( 373, "FULL" )));
pText->setFontColor(0xD11184FF);
}
else if( pChannelInfo->iPlayerNum >= _cmiComm.cci_iBusyUsers )
{
pText->SetText(CTString(_S( 374, "È¥Àâ" )));
pText->setFontColor(0xFF9533FF);
}
else
{
CTString strTmp;
strTmp.PrintF("%d", pChannelInfo->iPlayerNum);
pText->SetText(strTmp);
pText->setFontColor(0x00ff00FF);
}

}
}

m_pChannelList->UpdateList();
m_pChannelList->UpdateScroll(nChannelCnt);


 




 



Messages In This Thread
[No subject] - by cooldude - 12-30-2020, 06:08 PM
[No subject] - by dethunter12 - 12-31-2020, 03:36 PM
[No subject] - by b4rr4cud4 - 02-24-2021, 01:51 AM
[No subject] - by rondo157 - 02-24-2021, 02:34 AM
[No subject] - by kravens - 02-24-2021, 07:52 PM
[No subject] - by Matt Hias - 11-23-2021, 10:38 AM
[No subject] - by nicolasg - 11-23-2021, 10:46 AM
[No subject] - by Matt Hias - 11-23-2021, 10:54 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)