Hey Leute,
ich fange so langsam an das ganze zu verstehen, wie man programmiert..
und ich habe jetzt eine Frage/Problem..
Ich wollte den Quellcode in eine if-Schleife konvertieren. Aber der Server übernimmt diese irgendwie nicht...
WndTitle.cpp
Code:
{
lCount = g_dpCertified.m_aServerset[j].lCount;
lMax = g_dpCertified.m_aServerset[j].lMax;
#ifdef __CHANNEL_ONLINE
{
sprintf( lpString, "%s(%d %s)", g_dpCertified.m_aServerset[j].lpName, lCount, "Spieler Online");
}
#else // __CHANNEL_ONLINE
{
long lBusy = (long)( lMax * 0.8 );
if( lCount < lBusy )
strcpy( lpStrtmp, prj.GetText(TID_GAME_NORMAL)); //"Á¤»ó"
else if( lCount < lMax )
strcpy( lpStrtmp, prj.GetText(TID_GAME_BUSY)); //"È¥Àâ"
else
lstrcpy( lpStrtmp, prj.GetText(TID_GAME_FULL) );
sprintf( lpString, "%s(%s)", g_dpCertified.m_aServerset[j].lpName, lpStrtmp );
}
#endif // __CHANNEL_ONLINE
int nIndex = pWndListMulti->AddString( lpString );
pWndListMulti->SetItemData( nIndex, (DWORD)&g_dpCertified.m_aServerset[j] );
}
Versioncommon.h (neuz)
Code:
#define __CHANNEL_ONLINE
Ich danke schonmal jetzt für die Hilfe.
Gruß
Bananex45