- Mesaj
- 4.070
- Çözümler
- 408
- Beğeni
- 4.312
- Puan
- 1.849
- Ticaret Puanı
- 0
Arkadaşlar kolay gelsin. Gerekli her şeyi yaptım fakat daha buil başlatır başlatmaz tables.h den hata fırladı 
Gösterildiği gibi yaptım ama durum bu.. Sanırım daha çok hata alacağım
İlgili Blok:
Satır numaraları için;

Gösterildiği gibi yaptım ama durum bu.. Sanırım daha çok hata alacağım

Kod:
../../common/tables.h: In member function 'bool TSwitchbotAttributeAlternativeTable::IsConfigured() const':
../../common/tables.h:1538: error: a function-definition is not allowed here before ':' token
../../common/tables.h:1547: error: expected primary-expression at end of input
../../common/tables.h:1547: error: expected `;' at end of input
../../common/tables.h:1547: error: expected primary-expression at end of input
../../common/tables.h:1547: error: expected `)' at end of input
../../common/tables.h:1547: error: expected statement at end of input
../../common/tables.h:1547: error: expected `}' at end of input
Makefile:73: recipe for target 'OBJDIR_GAME/BattleArena.o' failed
gmake: *** [OBJDIR_GAME/BattleArena.o] Error 1
root@rakonda:/usr/src/wolfman/Server/game/src #
İlgili Blok:
C++:
#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;
}
};
Satır numaraları için;
En son bir moderatör tarafından düzenlenmiş: