*Problemă/Întrebare:nu reusesc sa trec de acest pas..eroare compilare
Tipologie server:PVM HARD
*Resursă folosită: https://dosya.co/vnw7upjtu8cz/Okyanus2_ ... mi.7z.html
*ServerFiles utilizat:
*Syserr:compile horsename_manager.cpp
exchange.cpp:302:23: error: use of undeclared identifier 'INVENTORY_PAGE_COLUMN' ; did you mean 'INVENTORY_MAX_NUM'?
302 | static CGrid s_grid1(INVENTORY_compile input.cpp
PAGE_COLUMN, INVENTORY_PAGE_ROW);
| ^~~~~~~~~~~~~~~~~~~~~
| INVENTORY_MAX_NUM
./../../common/length.h:15:2:compile input_auth.cpp
note: 'INVENTORY_MAX_NUM' declared here
15 | INVENTORY_MAX_NUM = 90,
| ^
exchange.cpp:302:46: error: use of undeclared identifier 'INVENTORY_PAGE_ROW'
302 | static CGrid s_grid1(INVENTORY_PAGE_COLUMN, INVENTORY_PAGE_ROW);
| ^
compile input_db.cpp
exchange.cpp:303:23: error: use of undeclared identifier 'INVENTORY_PAGE_COLUMN' ; did you mean 'INVENTORY_MAX_NUM'?
303 | static CGrid s_grid2(INVENTORY_PAGE_COLUMN, INVENTORY_PAGE_ROW);
| ^~~~~~~~~~~~~~~~~~~~~
| INVENTORY_MAX_NUM
./../../common/length.h:15:2: note: 'INVENTORY_MAX_NUM' declared here
15 | INVENTORY_MAX_NUM = 90,
| ^
exchange.cpp:303:46: error: use of undeclared identifier 'INVENTORY_PAGE_ROW'com pile input_login.cpp
303 | static CGrid s_grid2(INVENTORY_PAGE_COLUMN, INVENTORY_PAGE_ROW);
| ^
exchange.cpp:304:23: error: use of undeclared identifier 'INVENTORY_PAGE_COLUMN' ; did you mean 'INVENTORY_MAX_NUM'?
304 | static CGrid s_grid3(INVENTORY_PAGE_COLUMN, INVENTORY_PAGE_ROW);
| ^~~~~~~~~~~~~~~~~~~~~
| INVENTORY_MAX_NUM
./../../common/length.h:15:2: note: 'INVENTORY_MAX_NUM' declared here
15 | INVENTORY_MAX_NUM = 90,
| ^
exchange.cpp:304:46: error: use of undeclared identifier 'INVENTORY_PAGE_ROW'
304 | static CGrid s_grid3(INVENTORY_PAGE_COLUMN, INVENTORY_PAGE_ROW);
| ^
compile input_main.cpp
exchange.cpp:305:23: error: use of undeclared identifier 'INVENTORY_PAGE_COLUMN' ; did you mean 'INVENTORY_MAX_NUM'?
305 | static CGrid s_grid4(INVENTORY_PAGE_COLUMN, INVENTORY_PAGE_ROW);
| ^~~~~~~~~~~~~~~~~~~~~
| INVENTORY_MAX_NUM
./../../common/length.h:15:2: note: 'INVENTORY_MAX_NUM' declared here
15 | INVENTORY_MAX_NUM = 90,
| ^
exchange.cpp:305:46: error: use of undeclared identifier 'INVENTORY_PAGE_ROW'
305 | static CGrid s_grid4(INVENTORY_PAGE_COLUMN, INVENTORY_PAGE_ROW);
| ^
exchange.cpp:358:18: error: use of undeclared identifier 'INVENTORY_PAGE_SLOT_CO UNT'
358 | for (i = 0; i < INVENTORY_PAGE_SLOT_COUNT; ++i)
| ^
exchange.cpp:365:11: error: use of undeclared identifier 'INVENTORY_PAGE_SLOT_CO UNT'
365 | for (i = INVENTORY_PAGE_SLOT_COUNT; i < INVENTORY_PAGE_SLOT_COUN T * 2; ++i)
| ^
exchange.cpp:365:42: error: use of undeclared identifier 'INVENTORY_PAGE_SLOT_CO UNT'
365 | for (i = INVENTORY_PAGE_SLOT_COUNT; i < INVENTORY_PAGE_SLOT_COUN T * 2; ++i)
| ^
exchange.cpp:370:19: error: use of undeclared identifier 'INVENTORY_PAGE_SLOT_CO UNT'
370 | s_grid2.Put(i - INVENTORY_PAGE_SLOT_COUNT, 1, item->GetS ize());
| ^
exchange.cpp:372:11: error: use of undeclared identifier 'INVENTORY_PAGE_SLOT_CO UNT'
372 | for (i = INVENTORY_PAGE_SLOT_COUNT * 2; i < INVENTORY_PAGE_SLOT_ COUNT * 3; ++i)
| ^
exchange.cpp:372:46: error: use of undeclared identifier 'INVENTORY_PAGE_SLOT_CO UNT'
372 | for (i = INVENTORY_PAGE_SLOT_COUNT * 2; i < INVENTORY_PAGE_SLOT_ COUNT * 3; ++i)
| ^
exchange.cpp:377:19: error: use of undeclared identifier 'INVENTORY_PAGE_SLOT_CO UNT'
377 | s_grid3.Put(i - INVENTORY_PAGE_SLOT_COUNT * 2, 1, item->
Poză:
*Detalii suplimentare:
Depozit Special c++
- [HF]White
-

- Mesaje: 2684
- Membru din: 03 Iul 2018, 13:40
- Regat: Jinno
- Aprecieri: 338
- Mulţumiri: 5331
- Rezolvări prob.: 13
- Discord: Copiază ID
- Contact:
Nu ai declarat INVENTORY_PAGE_COLUMN sau include la fisieru.h unde se afla acesta
- NoNNeX
-

- Mesaje: 287
- Membru din: 27 Mai 2022, 11:48
- Server: -
- Regat: Jinno
- Aprecieri: 161
- Mulţumiri: 150
- Rezolvări prob.: 4
- Discord: Copiază ID
Cel mai probabil se afla în length.h[TC] Neseriosul scrie: ↑17 Dec 2023, 15:53pfiu si unde ar trebui sa-l declar mai exact...nu-mi dau seama nici cum.
- [HF]White
-

- Mesaje: 2684
- Membru din: 03 Iul 2018, 13:40
- Regat: Jinno
- Aprecieri: 338
- Mulţumiri: 5331
- Rezolvări prob.: 13
- Discord: Copiază ID
- Contact:
in tutorial nu scrie niciunde sa adaugi INVENTORY_PAGE_COLUMN.
refa exchange.cpp din nou cu grija, tradu explicatiile.
iti zice asa:
// Cauta:
// Adauga sub:
refa exchange.cpp din nou cu grija, tradu explicatiile.
iti zice asa:
// Cauta:
Cod: Selectaţi tot
bool CExchange::CheckSpace()
{Cod: Selectaţi tot
#ifdef ENABLE_SPLIT_INVENTORY_SYSTEM
LPCHARACTER me = GetOwner();
static CGrid s_grid5(5, SKILL_BOOK_INVENTORY_MAX_NUM / 5 / 3);
static CGrid s_grid6(5, SKILL_BOOK_INVENTORY_MAX_NUM / 5 / 3);
static CGrid s_grid7(5, SKILL_BOOK_INVENTORY_MAX_NUM / 5 / 3);
static CGrid s_grid8(5, UPGRADE_ITEMS_INVENTORY_MAX_NUM / 5 / 3);
static CGrid s_grid9(5, UPGRADE_ITEMS_INVENTORY_MAX_NUM / 5 / 3);
static CGrid s_grid10(5, UPGRADE_ITEMS_INVENTORY_MAX_NUM / 5 / 3);
static CGrid s_grid11(5, STONE_INVENTORY_MAX_NUM / 5 / 3);
static CGrid s_grid12(5, STONE_INVENTORY_MAX_NUM / 5 / 3);
static CGrid s_grid13(5, STONE_INVENTORY_MAX_NUM / 5 / 3);
static CGrid s_grid14(5, BOX_INVENTORY_MAX_NUM / 5 / 3);
static CGrid s_grid15(5, BOX_INVENTORY_MAX_NUM / 5 / 3);
static CGrid s_grid16(5, BOX_INVENTORY_MAX_NUM / 5 / 3);
static CGrid s_grid17(5, EFSUN_INVENTORY_MAX_NUM / 5 / 3);
static CGrid s_grid18(5, EFSUN_INVENTORY_MAX_NUM / 5 / 3);
static CGrid s_grid19(5, EFSUN_INVENTORY_MAX_NUM / 5 / 3);
static CGrid s_grid20(5, CICEK_INVENTORY_MAX_NUM / 5 / 3);
static CGrid s_grid21(5, CICEK_INVENTORY_MAX_NUM / 5 / 3);
static CGrid s_grid22(5, CICEK_INVENTORY_MAX_NUM / 5 / 3);
#endifhttps://pasteboard.co/7h0nEuZiRuks.png uite asa am eu ...partea de acolo.. ![HF]White scrie: ↑17 Dec 2023, 19:18 in tutorial nu scrie niciunde sa adaugi INVENTORY_PAGE_COLUMN.
refa exchange.cpp din nou cu grija, tradu explicatiile.
iti zice asa:
// Cauta:// Adauga sub:Cod: Selectaţi tot
bool CExchange::CheckSpace() {Cod: Selectaţi tot
#ifdef ENABLE_SPLIT_INVENTORY_SYSTEM LPCHARACTER me = GetOwner(); static CGrid s_grid5(5, SKILL_BOOK_INVENTORY_MAX_NUM / 5 / 3); static CGrid s_grid6(5, SKILL_BOOK_INVENTORY_MAX_NUM / 5 / 3); static CGrid s_grid7(5, SKILL_BOOK_INVENTORY_MAX_NUM / 5 / 3); static CGrid s_grid8(5, UPGRADE_ITEMS_INVENTORY_MAX_NUM / 5 / 3); static CGrid s_grid9(5, UPGRADE_ITEMS_INVENTORY_MAX_NUM / 5 / 3); static CGrid s_grid10(5, UPGRADE_ITEMS_INVENTORY_MAX_NUM / 5 / 3); static CGrid s_grid11(5, STONE_INVENTORY_MAX_NUM / 5 / 3); static CGrid s_grid12(5, STONE_INVENTORY_MAX_NUM / 5 / 3); static CGrid s_grid13(5, STONE_INVENTORY_MAX_NUM / 5 / 3); static CGrid s_grid14(5, BOX_INVENTORY_MAX_NUM / 5 / 3); static CGrid s_grid15(5, BOX_INVENTORY_MAX_NUM / 5 / 3); static CGrid s_grid16(5, BOX_INVENTORY_MAX_NUM / 5 / 3); static CGrid s_grid17(5, EFSUN_INVENTORY_MAX_NUM / 5 / 3); static CGrid s_grid18(5, EFSUN_INVENTORY_MAX_NUM / 5 / 3); static CGrid s_grid19(5, EFSUN_INVENTORY_MAX_NUM / 5 / 3); static CGrid s_grid20(5, CICEK_INVENTORY_MAX_NUM / 5 / 3); static CGrid s_grid21(5, CICEK_INVENTORY_MAX_NUM / 5 / 3); static CGrid s_grid22(5, CICEK_INVENTORY_MAX_NUM / 5 / 3); #endif
incearca sa schimbi primele 4 linii de sub[TC] Neseriosul scrie: ↑17 Dec 2023, 19:40https://pasteboard.co/7h0nEuZiRuks.png uite asa am eu ...partea de acolo.. ![HF]White scrie: ↑17 Dec 2023, 19:18 in tutorial nu scrie niciunde sa adaugi INVENTORY_PAGE_COLUMN.
refa exchange.cpp din nou cu grija, tradu explicatiile.
iti zice asa:
// Cauta:// Adauga sub:Cod: Selectaţi tot
bool CExchange::CheckSpace() {Cod: Selectaţi tot
#ifdef ENABLE_SPLIT_INVENTORY_SYSTEM LPCHARACTER me = GetOwner(); static CGrid s_grid5(5, SKILL_BOOK_INVENTORY_MAX_NUM / 5 / 3); static CGrid s_grid6(5, SKILL_BOOK_INVENTORY_MAX_NUM / 5 / 3); static CGrid s_grid7(5, SKILL_BOOK_INVENTORY_MAX_NUM / 5 / 3); static CGrid s_grid8(5, UPGRADE_ITEMS_INVENTORY_MAX_NUM / 5 / 3); static CGrid s_grid9(5, UPGRADE_ITEMS_INVENTORY_MAX_NUM / 5 / 3); static CGrid s_grid10(5, UPGRADE_ITEMS_INVENTORY_MAX_NUM / 5 / 3); static CGrid s_grid11(5, STONE_INVENTORY_MAX_NUM / 5 / 3); static CGrid s_grid12(5, STONE_INVENTORY_MAX_NUM / 5 / 3); static CGrid s_grid13(5, STONE_INVENTORY_MAX_NUM / 5 / 3); static CGrid s_grid14(5, BOX_INVENTORY_MAX_NUM / 5 / 3); static CGrid s_grid15(5, BOX_INVENTORY_MAX_NUM / 5 / 3); static CGrid s_grid16(5, BOX_INVENTORY_MAX_NUM / 5 / 3); static CGrid s_grid17(5, EFSUN_INVENTORY_MAX_NUM / 5 / 3); static CGrid s_grid18(5, EFSUN_INVENTORY_MAX_NUM / 5 / 3); static CGrid s_grid19(5, EFSUN_INVENTORY_MAX_NUM / 5 / 3); static CGrid s_grid20(5, CICEK_INVENTORY_MAX_NUM / 5 / 3); static CGrid s_grid21(5, CICEK_INVENTORY_MAX_NUM / 5 / 3); static CGrid s_grid22(5, CICEK_INVENTORY_MAX_NUM / 5 / 3); #endif
Cod: Selectaţi tot
bool CExchange::CheckSpace()
{Cod: Selectaţi tot
static CGrid s_grid1(5, INVENTORY_MAX_NUM/5/4);
static CGrid s_grid2(5, INVENTORY_MAX_NUM/5/4);
static CGrid s_grid3(5, INVENTORY_MAX_NUM/5/4);
static CGrid s_grid4(5, INVENTORY_MAX_NUM/5/4);sa-ti arate ceva de genu
Cod: Selectaţi tot
bool CExchange::CheckSpace()
{
static CGrid s_grid1(5, INVENTORY_MAX_NUM/5/4);
static CGrid s_grid2(5, INVENTORY_MAX_NUM/5/4);
static CGrid s_grid3(5, INVENTORY_MAX_NUM/5/4);
static CGrid s_grid4(5, INVENTORY_MAX_NUM/5/4);
#ifdef ENABLE_SPLIT_INVENTORY_SYSTEM
LPCHARACTER me = GetOwner();
static CGrid s_grid5(5, SKILL_BOOK_INVENTORY_MAX_NUM / 5 / 3);
static CGrid s_grid6(5, SKILL_BOOK_INVENTORY_MAX_NUM / 5 / 3);
static CGrid s_grid7(5, SKILL_BOOK_INVENTORY_MAX_NUM / 5 / 3);
static CGrid s_grid8(5, UPGRADE_ITEMS_INVENTORY_MAX_NUM / 5 / 3);
static CGrid s_grid9(5, UPGRADE_ITEMS_INVENTORY_MAX_NUM / 5 / 3);
static CGrid s_grid10(5, UPGRADE_ITEMS_INVENTORY_MAX_NUM / 5 / 3);
static CGrid s_grid11(5, STONE_INVENTORY_MAX_NUM / 5 / 3);
static CGrid s_grid12(5, STONE_INVENTORY_MAX_NUM / 5 / 3);
static CGrid s_grid13(5, STONE_INVENTORY_MAX_NUM / 5 / 3);
static CGrid s_grid14(5, BOX_INVENTORY_MAX_NUM / 5 / 3);
static CGrid s_grid15(5, BOX_INVENTORY_MAX_NUM / 5 / 3);
static CGrid s_grid16(5, BOX_INVENTORY_MAX_NUM / 5 / 3);
static CGrid s_grid17(5, EFSUN_INVENTORY_MAX_NUM / 5 / 3);
static CGrid s_grid18(5, EFSUN_INVENTORY_MAX_NUM / 5 / 3);
static CGrid s_grid19(5, EFSUN_INVENTORY_MAX_NUM / 5 / 3);
static CGrid s_grid20(5, CICEK_INVENTORY_MAX_NUM / 5 / 3);
static CGrid s_grid21(5, CICEK_INVENTORY_MAX_NUM / 5 / 3);
static CGrid s_grid22(5, CICEK_INVENTORY_MAX_NUM / 5 / 3);
#endif
s_grid1.Clear();
s_grid2.Clear();
s_grid3.Clear();
s_grid4.Clear();
#ifdef ENABLE_SPLIT_INVENTORY_SYSTEM
s_grid5.Clear();
s_grid6.Clear();
s_grid7.Clear();
s_grid8.Clear();
s_grid9.Clear();
s_grid10.Clear();
s_grid11.Clear();
s_grid12.Clear();
s_grid13.Clear();
s_grid14.Clear();
s_grid15.Clear();
s_grid16.Clear();
s_grid17.Clear();
s_grid18.Clear();
s_grid19.Clear();
s_grid20.Clear();
s_grid21.Clear();
s_grid22.Clear();
#endif-
- Informaţie
-
Cine este conectat
Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 5 vizitatori


