Das
Code:
BOOL CWndLordEvent::Initialize( CWndBase* pWndParent, DWORD nType)
{
if(!CCLord::Instance()->IsLord(g_pPlayer->m_idPlayer))
{
g_WndMng.OpenMessageBox(prj.GetText(TID_GAME_L_EVENT_CREATE_E001));
Destroy();
return FALSE;
}
return CWndNeuz::InitDialog( g_Neuz.GetSafeHwnd(), APP_LORD_EVENT, 0, CPoint( 0, 0 ), pWndParent );
}
mit
Code:
#ifdef _ONLY_LORD_CAN_DO_EVENTS
BOOL CWndLordEvent::Initialize( CWndBase* pWndParent, DWORD nType)
{
if(!CCLord::Instance()->IsLord(g_pPlayer->m_idPlayer))
{
g_WndMng.OpenMessageBox(prj.GetText(TID_GAME_L_EVENT_CREATE_E001));
Destroy();
return FALSE;
}
return CWndNeuz::InitDialog( g_Neuz.GetSafeHwnd(), APP_LORD_EVENT, 0, CPoint( 0, 0 ), pWndParent );
}
#else
BOOL CWndLordEvent::Initialize( CWndBase* pWndParent, DWORD nType)
{
if(!CCLord::Instance()->IsLord(g_pPlayer->m_idPlayer))
{
g_WndMng.OpenMessageBox(prj.GetText(TID_GAME_L_EVENT_CREATE_E001));
Destroy();
return FALSE;
}
return CWndNeuz::InitDialog( g_Neuz.GetSafeHwnd(), APP_LORD_EVENT, 0, CPoint( 0, 0 ), pWndParent );
}
#endif
und das
Code:
if( !CSLord::Instance()->IsLord( pUser->m_idPlayer ) ) // is he lord?
return TID_GAME_L_EVENT_CREATE_E001;
mit das
Code:
#ifdef _ONLY_LORD_CAN_DO_EVENTS
if( !CSLord::Instance()->IsLord( pUser->m_idPlayer ) ) // is he lord?
return TID_GAME_L_EVENT_CREATE_E001;
#else
if( !CSLord::Instance()->IsLord( pUser->m_idPlayer ) ) // is he lord?
return TID_GAME_L_EVENT_CREATE_E001;
#endif
wenn du es so machst, kannst du es immer noch ausdefinieren ohne probleme
ps. ich garantiere für nichts, da ich dir nur das gepostet habe, wie zerux dir es gepostet hat