*Problemă/Întrebare:am bagat si eu weapon skin value 3 si am eroarea asta in char_item.cpp
Tipologie server(PvM / PvP):
*Resursă folosită: *Link exclusiv J4M*
*ServerFiles utilizat:
*Syserr:
char_item.cpp: In member function 'bool CHARACTER::CanEquipNow(LPITEM, const TItemPos&, const TItemPos&)':
char_item.cpp:7952:82: error: expected primary-expression before ')' token
else if (item->GetType() == ITEM_COSTUME && item->GetSubType() == COSTUME_WEAPON)
^
gmake: *** [Makefile:191: .obj/char_item.o] Error 1
Poză:
*Detalii suplimentare: char_item.cpp, mersi mult!!
problema skin
- Marius Dragomir
-

- Mesaje: 1020
- Membru din: 13 Noi 2017, 21:32
- Server: HellHound
- Regat: Jinno
- Aprecieri: 499
- Mulţumiri: 1211
- Discord: Copiază ID
Inlocuieste functia aceea cu functia astaGalatan922 scrie: ↑18 Dec 2020, 08:46 *Problemă/Întrebare:am bagat si eu weapon skin value 3 si am eroarea asta in char_item.cpp
Tipologie server(PvM / PvP):
*Resursă folosită: *Link exclusiv J4M*
*ServerFiles utilizat:
*Syserr:
char_item.cpp: In member function 'bool CHARACTER::CanEquipNow(LPITEM, const TItemPos&, const TItemPos&)':
char_item.cpp:7952:82: error: expected primary-expression before ')' token
else if (item->GetType() == ITEM_COSTUME && item->GetSubType() == COSTUME_WEAPON)
^
gmake: *** [Makefile:191: .obj/char_item.o] Error 1
Poză:
*Detalii suplimentare: char_item.cpp, mersi mult!!
#ifdef __WEAPON_COSTUME_SYSTEM__
#ifdef __NEW_ARROW_SYSTEM__
if (item->GetType() == ITEM_WEAPON && item->GetSubType() != WEAPON_ARROW && item->GetSubType() != WEAPON_UNLIMITED_ARROW)
#else
if (item->GetType() == ITEM_WEAPON && item->GetSubType() != WEAPON_ARROW)
#endif
{
LPITEM pkItem = GetWear(WEAR_COSTUME_WEAPON);
if (pkItem)
{
ChatPacket(CHAT_TYPE_INFO, LC_TEXT("For can do this unwear the costume weapon."));
return false;
}
}
else if (item->GetType() == ITEM_COSTUME && item->GetSubType() == COSTUME_WEAPON)
{
LPITEM pkItem = GetWear(WEAR_WEAPON);
if (!pkItem)
{
ChatPacket(CHAT_TYPE_INFO, LC_TEXT("You can't wear a costume weapon without have a weapon weared."));
return false;
}
else if (item->GetValue(3) != pkItem->GetSubType())
{
ChatPacket(CHAT_TYPE_INFO, LC_TEXT("You can't wear a costume weapon who has different type of your weapon."));
return false;
}
else if (item->GetType() == ITEM_ROD || item->GetType() == ITEM_PICK)
{
LPITEM pkItem = GetWear(WEAR_COSTUME_WEAPON);
if (pkItem)
{
ChatPacket(CHAT_TYPE_INFO, LC_TEXT(" Pe aceasta unealta nu se poate folosi skinuri de arme."));
return false;
}
}
}
if (item->GetType() == ITEM_ROD || item->GetType() == ITEM_PICK)
{
LPITEM pkItem = GetWear(WEAR_COSTUME_WEAPON);
if (pkItem)
{
ChatPacket(CHAT_TYPE_INFO, LC_TEXT("For can do this unwear the costume weapon."));
return false;
}
}
#endifchar_item.cpp: In member function 'bool CHARACTER::CanEquipNow(LPITEM, const TItemPos&, const TItemPos&)':
char_item.cpp:7956:82: error: expected primary-expression before ')' token
else if (item->GetType() == ITEM_COSTUME && item->GetSubType() == COSTUME_WEAPON)
linia 7956 :
else if (item->GetType() == ITEM_COSTUME && item->GetSubType() == COSTUME_WEAPON)
char_item.cpp:7956:82: error: expected primary-expression before ')' token
else if (item->GetType() == ITEM_COSTUME && item->GetSubType() == COSTUME_WEAPON)
linia 7956 :
else if (item->GetType() == ITEM_COSTUME && item->GetSubType() == COSTUME_WEAPON)
Up
[ Postat de pe iPhone ]
[ Postat de pe iPhone ]

- Marius Dragomir
-

- Mesaje: 1020
- Membru din: 13 Noi 2017, 21:32
- Server: HellHound
- Regat: Jinno
- Aprecieri: 499
- Mulţumiri: 1211
- Discord: Copiază ID
Ai pus ce ti-am dat eu peste functia ta?Galatan922 scrie: ↑18 Dec 2020, 11:57 char_item.cpp: In member function 'bool CHARACTER::CanEquipNow(LPITEM, const TItemPos&, const TItemPos&)':
char_item.cpp:7956:82: error: expected primary-expression before ')' token
else if (item->GetType() == ITEM_COSTUME && item->GetSubType() == COSTUME_WEAPON)
linia 7956 :
else if (item->GetType() == ITEM_COSTUME && item->GetSubType() == COSTUME_WEAPON)
Da
[ Postat de pe iPhone ]
[ Postat de pe iPhone ]

- Marius Dragomir
-

- Mesaje: 1020
- Membru din: 13 Noi 2017, 21:32
- Server: HellHound
- Regat: Jinno
- Aprecieri: 499
- Mulţumiri: 1211
- Discord: Copiază ID
Pune char_item.cpp pe paste bin si lasa aici sa ma uit prin el. tot o data pune si char item din tutorial
Char item l am postat pe la inceput de post tutorialul e a lui kidro value 3 nu sunt acasa..
[ Postat de pe iPhone ]
[ Postat de pe iPhone ]

- [ATR]
-

- Mesaje: 373
- Membru din: 08 Sep 2019, 19:06
- Server: n am
- Regat: Shinsoo
- Aprecieri: 164
- Mulţumiri: 1236
- Discord: Copiază ID
- Contact:
daca faceai exact ca in tutorial iti mergea ca am testat acel tutorial
-
- Informaţie
-
Cine este conectat
Utilizatori ce ce navighează pe acest forum: marian261 și 45 vizitatori

