Tipologie server(PvM / PvP):
*Resursă folosită: *Link exclusiv J4M*
*ServerFiles utilizat:
*Syserr: gmake: *** [.obj/Monarch.o] Error 1
root@:/usr/src/sursata/Server/db/src # gmake default
compiling Monarch.cpp
In file included from Monarch.h:9:0,
from Monarch.cpp:1:
../../common/tables.h
TPlayerItemAttribute attributes[MAX_NORM_ATTR_NUM];
^
../../common/tables.h: In member function 'bool TSwitchbotAttributeAlternativeTable::IsConfigured() const':
../../common/tables.h
for (const auto& it : attributes)
^
../../common/tables.h: At global scope:
../../common/tables.h
bool active[SWITCHBOT_SLOT_COUNT];
^
../../common/tables.h
bool finished[SWITCHBOT_SLOT_COUNT];
^
../../common/tables.h
DWORD items[SWITCHBOT_SLOT_COUNT];
^
../../common/tables.h
TSwitchbotAttributeAlternativeTable alternatives[SWITCHBOT_SLOT_COUNT][SWITCHBOT_ALTERNATIVE_COUNT];
^
../../common/tables.h
TSwitchbotAttributeAlternativeTable alternatives[SWITCHBOT_SLOT_COUNT][SWITCHBOT_ALTERNATIVE_COUNT];
^
../../common/tables.h: In constructor 'TSwitchbotTable::TSwitchbotTable()':
../../common/tables.h
memset(&items, 0, sizeof(items));
^
../../common/tables.h
memset(&alternatives, 0, sizeof(alternatives));
^
../../common/tables.h
memset(&active, false, sizeof(active));
^
../../common/tables.h
memset(&finished, false, sizeof(finished));
Poză:
*Detalii suplimentare:
Codul din table.h
#ifdef ENABLE_SWITCHBOT
struct TSwitchbotAttributeAlternativeTable
{
TPlayerItemAttribute attributes[MAX_NORM_ATTR_NUM];
bool IsConfigured() const
{
for (const auto& it : attributes)
{
if (it.bType && it.sValue)
{
return true;
}
}
return false;
}
};
struct TSwitchbotTable
{
DWORD player_id;
bool active[SWITCHBOT_SLOT_COUNT];
bool finished[SWITCHBOT_SLOT_COUNT];
DWORD items[SWITCHBOT_SLOT_COUNT];
TSwitchbotAttributeAlternativeTable alternatives[SWITCHBOT_SLOT_COUNT][SWITCHBOT_ALTERNATIVE_COUNT];
TSwitchbotTable() : player_id(0)
{
memset(&items, 0, sizeof(items));
memset(&alternatives, 0, sizeof(alternatives));
memset(&active, false, sizeof(active));
memset(&finished, false, sizeof(finished));
}
};
struct TSwitchbottAttributeTable
{
BYTE attribute_set;
int apply_num;
long max_value;
};
#endif
