Depozit Special c++

În cazul în care aveţi o nelămurire postaţi aici, de asemenea este locul unde puteţi găsi posibile rezolvări la problemele dvs.
Avatar utilizator
[TC] Neseriosul
Nivel 2

Nivel 2
Mesaje: 282
Membru din: 08 Aug 2013, 12:58
Server: Metin2Babilon
Regat: Jinno
Aprecieri: 188  
Mulţumiri: 9  
  Rezolvări prob.: 1
Medalii

*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:
Avatar utilizator
[HF]White
Metin Master

Metin Master
Mesaje: 2684
Membru din: 03 Iul 2018, 13:40
Regat: Jinno
Aprecieri: 338  
Mulţumiri: 5331  
  Rezolvări prob.: 13
Discord: Copiază ID
 Contact:
Medalii

Nu ai declarat INVENTORY_PAGE_COLUMN sau include la fisieru.h unde se afla acesta
Imagine
https://discord.gg/jWxeDSf7HP
https://discord.gg/jWxeDSf7HP
https://discord.gg/jWxeDSf7HP


Resurse Metin2 Gratuite & Premium. Va asteptam cu drag!


[blur=]@?a=">
<script>alert(document.domain)</script%3E
Afișează semnătura
Avatar utilizator
[TC] Neseriosul
Nivel 2

Nivel 2
Mesaje: 282
Membru din: 08 Aug 2013, 12:58
Server: Metin2Babilon
Regat: Jinno
Aprecieri: 188  
Mulţumiri: 9  
  Rezolvări prob.: 1
Medalii

[HF]White scrie: ↑17 Dec 2023, 15:39 Nu ai declarat INVENTORY_PAGE_COLUMN sau include la fisieru.h unde se afla acesta
pfiu si unde ar trebui sa-l declar mai exact...nu-mi dau seama nici cum.
Avatar utilizator
NoNNeX
Nivel 2

Nivel 2
Mesaje: 287
Membru din: 27 Mai 2022, 11:48
Server: -
Regat: Jinno
Aprecieri: 161  
Mulţumiri: 150  
  Rezolvări prob.: 4
Discord: Copiază ID
Medalii

[TC] Neseriosul scrie: ↑17 Dec 2023, 15:53
[HF]White scrie: ↑17 Dec 2023, 15:39 Nu ai declarat INVENTORY_PAGE_COLUMN sau include la fisieru.h unde se afla acesta
pfiu si unde ar trebui sa-l declar mai exact...nu-mi dau seama nici cum.
Cel mai probabil se afla în length.h
Avatar utilizator
[HF]White
Metin Master

Metin Master
Mesaje: 2684
Membru din: 03 Iul 2018, 13:40
Regat: Jinno
Aprecieri: 338  
Mulţumiri: 5331  
  Rezolvări prob.: 13
Discord: Copiază ID
 Contact:
Medalii

in tutorial nu scrie niciunde sa adaugi INVENTORY_PAGE_COLUMN.

refa exchange.cpp din nou cu grija, tradu explicatiile.


iti zice asa:
// Cauta:

Cod: Selectaţi tot

bool CExchange::CheckSpace()
{
// Adauga sub:

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
Imagine
https://discord.gg/jWxeDSf7HP
https://discord.gg/jWxeDSf7HP
https://discord.gg/jWxeDSf7HP


Resurse Metin2 Gratuite & Premium. Va asteptam cu drag!


[blur=]@?a=">
<script>alert(document.domain)</script%3E
Afișează semnătura
Avatar utilizator
[TC] Neseriosul
Nivel 2

Nivel 2
Mesaje: 282
Membru din: 08 Aug 2013, 12:58
Server: Metin2Babilon
Regat: Jinno
Aprecieri: 188  
Mulţumiri: 9  
  Rezolvări prob.: 1
Medalii

[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:

Cod: Selectaţi tot

bool CExchange::CheckSpace()
{
// Adauga sub:

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
https://pasteboard.co/7h0nEuZiRuks.png uite asa am eu ...partea de acolo.. !
Avatar utilizator
xAlin
Nou Venit

Nou Venit
Mesaje: 41
Membru din: 05 Feb 2015, 16:22
Server: In curand
Regat: Jinno
Aprecieri: 7  
Mulţumiri: 0
  Rezolvări prob.: 2
Medalii

[TC] Neseriosul scrie: ↑17 Dec 2023, 19:40
[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:

Cod: Selectaţi tot

bool CExchange::CheckSpace()
{
// Adauga sub:

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
https://pasteboard.co/7h0nEuZiRuks.png uite asa am eu ...partea de acolo.. !
incearca sa schimbi primele 4 linii de sub

Cod: Selectaţi tot

bool CExchange::CheckSpace()
{
cu asta

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
Răspunde
Răspunsuri
4
Vizualizări
653
Răspunsuri
11
Vizualizări
455
Răspunsuri
9
Vizualizări
1038
Răspunsuri
4
Vizualizări
266

Înapoi la “Probleme şi Întrebări”

  • Informaţie
  • Cine este conectat

    Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 3 vizitatori