*Problemă/Întrebare:
Tipologie server:
*Resursă folosită:
*ServerFiles utilizat:
*Syserr: item.cpp: In member function 'int CItem::FindEquipCell(CHARACTER, int)':
item.cpp:497: error: 'ITEM_SHINING' was not declared in this scope
item.cpp: In member function 'bool CItem::IsEquipable() const':
item.cpp:933: error: expected primary-expression before '}' token
item.cpp:933: error: expected `;' before '}' token
gmake: ** [.obj/item.o] Error 1
Poză:
*Detalii suplimentare: item.cpp
Eroare item
- xKratos
-

- Mesaje: 381
- Membru din: 15 Ian 2020, 18:04
- Regat: Chunjo
- Aprecieri: 116
- Mulţumiri: 2005
- Discord: Copiază ID
- Contact:
- Mr. Essex
-

- Mesaje: 383
- Membru din: 03 Mar 2020, 16:40
- Regat: Shinsoo
- Aprecieri: 342
- Mulţumiri: 1414
- Discord: Copiază ID
Functia:
trebuie sa arate in felu urmator
Cod: Selectaţi tot
bool CItem::IsEquipable() constCod: Selectaţi tot
bool CItem::IsEquipable() const
{
switch (this->GetType())
{
case ITEM_COSTUME:
case ITEM_ARMOR:
case ITEM_WEAPON:
case ITEM_ROD:
case ITEM_PICK:
case ITEM_UNIQUE:
case ITEM_DS:
case ITEM_SPECIAL_DS:
case ITEM_RING:
case ITEM_BELT:
return true;
}
return false;
}
- xKratos
-

- Mesaje: 381
- Membru din: 15 Ian 2020, 18:04
- Regat: Chunjo
- Aprecieri: 116
- Mulţumiri: 2005
- Discord: Copiază ID
- Contact:
SIBERIA scrie: ↑19 Mai 2020, 10:44 Functia:trebuie sa arate in felu urmatorCod: Selectaţi tot
bool CItem::IsEquipable() constCod: Selectaţi tot
bool CItem::IsEquipable() const { switch (this->GetType()) { case ITEM_COSTUME: case ITEM_ARMOR: case ITEM_WEAPON: case ITEM_ROD: case ITEM_PICK: case ITEM_UNIQUE: case ITEM_DS: case ITEM_SPECIAL_DS: case ITEM_RING: case ITEM_BELT: return true; } return false; }
item.cpp: In member function 'int CItem::FindEquipCell(CHARACTER*, int)':
item.cpp:497: error: 'ITEM_SHINING' was not declared in this scope
gmake: *** [.obj/item.o] Error 1
- xKratos
-

- Mesaje: 381
- Membru din: 15 Ian 2020, 18:04
- Regat: Chunjo
- Aprecieri: 116
- Mulţumiri: 2005
- Discord: Copiază ID
- Contact:
sus
- Ionuţ M.
-

- Mesaje: 2680
- Membru din: 28 Noi 2015, 22:02
- Aprecieri: 170
- Mulţumiri: 12723
- Rezolvări prob.: 2
- Discord: Copiază ID
- Contact:
Testeaza asa.
- xKratos
-

- Mesaje: 381
- Membru din: 15 Ian 2020, 18:04
- Regat: Chunjo
- Aprecieri: 116
- Mulţumiri: 2005
- Discord: Copiază ID
- Contact:
- xKratos
-

- Mesaje: 381
- Membru din: 15 Ian 2020, 18:04
- Regat: Chunjo
- Aprecieri: 116
- Mulţumiri: 2005
- Discord: Copiază ID
- Contact:
T/C
- Ionuţ M.
-

- Mesaje: 2680
- Membru din: 28 Noi 2015, 22:02
- Aprecieri: 170
- Mulţumiri: 12723
- Rezolvări prob.: 2
- Discord: Copiază ID
- Contact:
Mutat in Probleme Rezolvate.
-
- Informaţie
-
Cine este conectat
Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 17 vizitatori
