Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

Zwiększony limit yang do 999kkk


Rekomendowane odpowiedzi

Opublikowano

Cześć, nie znalazłem jeszcze odpowiedniego tematu do zwiększenia yang na source najlepiej (więcej niż 999.000.000.000)

 

Edytuje się to tutaj:

lenght.h

	//LIMIT_GOLD
	GOLD_MAX = 999000000000,             // 2,000,000,000
	//END_LIMIT_GOLD

leczy gdy kompiluje game&db to errory i się nie kompiluje.

Tylko gdy zmienie ten gold_max.

e3e0ug.png+ 4gb ram.


 

Opublikowano

Tak, wiem lecz gdy tylko to edytuje to już game się nie kompiluje.

e3e0ug.png+ 4gb ram.


 

Opublikowano

Jeżeli chodzi o tę linijkę, którą podałeś to: GOLD_MAX = 999000000000LL,

No tak, to i ja wiem lecz co dalej?

e3e0ug.png+ 4gb ram.


 

Opublikowano

Teraz takie errory mam w kompilacji game:

 

char.cpp - long long CHARACTER::GetAllowedGold() const

char.h -     long long        gold;

tables.h -     long long    gold;

length.h -     GOLD_MAX = 999000000000LL,

 

 

In file included from char.cpp:4:

../../common/VnumHelper.h:59:32: warning: no newline at end of file
In file included from char.cpp:25:
shop_manager.h:40:7: warning: no newline at end of file
In file included from char.cpp:62:
PetSystem.h:163:31: warning: no newline at end of file
char.cpp:7208: warning: this decimal constant is unsigned only in ISO C90
char.cpp:7216:2: warning: no newline at end of file
In file included from char_battle.cpp:27:
shop_manager.h:40:7: warning: no newline at end of file
In file included from char_horse.cpp:14:
../../common/VnumHelper.h:59:32: warning: no newline at end of file
In file included from char_item.cpp:44:
../../common/VnumHelper.h:59:32: warning: no newline at end of file
In file included from char_item.cpp:47:
belt_inventory_helper.h:108:42: warning: no newline at end of file
In file included from PetSystem.cpp:8:
PetSystem.h:163:31: warning: no newline at end of file
In file included from PetSystem.cpp:9:
../../common/VnumHelper.h:59:32: warning: no newline at end of file
PetSystem.cpp:637:2: warning: no newline at end of file
In file included from char_state.cpp:25:
../../common/VnumHelper.h:59:32: warning: no newline at end of file
char.cpp:3000: error: prototype for 'long long int CHARACTER::GetAllowedGold() const' does not match any in class 'CHARACTER'
char.h:1173: error: candidate is: INT CHARACTER::GetAllowedGold() const
char.cpp:3000: error: 'long long int CHARACTER::GetAllowedGold() const' cannot be overloaded
char.h:1173: error: with 'INT CHARACTER::GetAllowedGold() const'
char.cpp: In member function 'void CHARACTER::PointChange(BYTE, int, bool, bool)':
char.cpp:3089: warning: comparison between signed and unsigned integer expressions
In file included from char_item.cpp:47:
belt_inventory_helper.h: In static member function 'static BYTE CBeltInventoryHelper::GetBeltGradeByRefineLevel(int)':
belt_inventory_helper.h:28: warning: comparison between signed and unsigned integer expressions
char_item.cpp: In member function 'bool CHARACTER::IsEmptyItemGrid(TItemPos, BYTE, int) const':
char_item.cpp:640: warning: comparison is always false due to limited range of data type
char_item.cpp:666: warning: comparison is always false due to limited range of data type
In file included from cmd_general.cpp:36:
../../common/VnumHelper.h:59:32: warning: no newline at end of file
char_item.cpp: In member function 'bool CHARACTER::UseItemEx(CItem*, TItemPos)':
char_item.cpp:2387: warning: format '%d' expects type 'int', but argument 6 has type 'long int'
char_item.cpp:2391: warning: format '%d' expects type 'int', but argument 6 has type 'long int'
char_item.cpp:2403: warning: format '%d' expects type 'int', but argument 5 has type 'long int'
char_item.cpp:2407: warning: format '%d' expects type 'int', but argument 5 has type 'long int'
char_item.cpp:2434: warning: format '%d' expects type 'int', but argument 6 has type 'long int'
char_item.cpp:2442: warning: format '%d' expects type 'int', but argument 5 has type 'long int'
char_item.cpp:5090: warning: comparison between signed and unsigned integer expressions
gmake: *** [OBJDIR/char.o] Bł±d 1
gmake: *** Oczekiwanie na niezakończone zadania....
PetSystem.cpp: In member function 'virtual bool CPetActor::_UpdateFollowAI()':
PetSystem.cpp:246: warning: unused variable 'bDoMoveAlone'
char_item.cpp: In member function 'bool CHARACTER::UseItem(TItemPos, TItemPos)':
char_item.cpp:5162: warning: unused variable 'wDestCell'
char_item.cpp:5163: warning: unused variable 'bDestInven'
PetSystem.cpp: In member function 'CPetActor* CPetSystem::Summon(DWORD, CItem*, const char*, bool, DWORD)':
PetSystem.cpp:552: warning: unused variable 'petVID'
char_item.cpp: In member function 'bool CHARACTER::EquipItem(CItem*, int)':
char_item.cpp:6103: warning: array subscript has type 'char'
char_item.cpp: In member function 'void CHARACTER::BuffOnAttr_AddBuffsFromItem(CItem*)':
char_item.cpp:6167: warning: comparison between signed and unsigned integer expressions
char_item.cpp: In member function 'void CHARACTER::BuffOnAttr_RemoveBuffsFromItem(CItem*)':
char_item.cpp:6179: warning: comparison between signed and unsigned integer expressions
char_item.cpp: In member function 'bool CHARACTER::CanEquipNow(CItem*, const TItemPos&, const TItemPos&)':
char_item.cpp:7365: warning: unused variable 'itemType'
char_item.cpp:7366: warning: unused variable 'itemSubType'
constants.cpp:371: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:372: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:373: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:374: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:375: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:376: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:377: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:378: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:379: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:380: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:381: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:382: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:383: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:384: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:385: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:386: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:387: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:388: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:389: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:390: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:391: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:392: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:393: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:394: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:395: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:396: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:397: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:398: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:399: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:400: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:401: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:402: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:403: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:404: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:405: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:406: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:407: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:408: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:409: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:410: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:411: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:412: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:413: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:414: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:415: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:416: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:417: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:418: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:419: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:420: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:421: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:422: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:423: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:424: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:425: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:426: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:427: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:428: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:429: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:430: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:431: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:432: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:433: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:434: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:435: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:436: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:437: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:438: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:439: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:440: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:441: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:442: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:443: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:444: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:445: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:446: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:447: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:448: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:449: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:450: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:451: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:452: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:453: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:454: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:455: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:456: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:457: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:458: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:459: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:460: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:461: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:462: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:463: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:464: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:465: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:466: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:467: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:468: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:469: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:470: warning: this decimal constant is unsigned only in ISO C90
constants.cpp:471: warning: this decimal constant is unsigned only in ISO C90
char_item.cpp: In member function 'bool CHARACTER::IsEmptyItemGrid(TItemPos, BYTE, int) const':
char_item.cpp:679: warning: control reaches end of non-void function
char_state.cpp: In member function 'virtual void CHARACTER::StateMove()':
char_state.cpp:901: warning: unused variable 'rider'
In file included from config.cpp:22:
check_server.h: In static member function 'static bool CheckServer::CheckIp(const char*)':
check_server.h:24: warning: comparison between signed and unsigned integer expressions
config.cpp: In function 'void config_init(const std::string&)':
config.cpp:435: warning: NULL used in arithmetic
config.cpp:459: warning: NULL used in arithmetic
config.cpp:483: warning: NULL used in arithmetic
config.cpp:505: warning: unused variable 'line'
cmd_gm.cpp: In function 'void do_set_stat(CHARACTER*, const char*, int, int)':
cmd_gm.cpp:3935: warning: NULL used in arithmetic
char_item.cpp: In member function 'void CHARACTER::BuffOnAttr_ValueChange(BYTE, BYTE, BYTE)':
char_item.cpp:6214: warning: 'pBuff' may be used uninitialized in this function
cmd_gm.cpp: In function 'void do_use_item(CHARACTER*, const char*, int, int)':
cmd_gm.cpp:4357: warning: 'cell' may be used uninitialized in this function
cmd_gm.cpp: In function 'void do_set_stat(CHARACTER*, const char*, int, int)':
cmd_gm.cpp:3977: warning: 'n' may be used uninitialized in this function
cmd_gm.cpp: In function 'void do_mob_ld(CHARACTER*, const char*, int, int)':
cmd_gm.cpp:855: warning: 'x' may be used uninitialized in this function
cmd_gm.cpp:855: warning: 'y' may be used uninitialized in this function
 

 

 

e3e0ug.png+ 4gb ram.


 

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...