• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

C++ Problem with operator and class type tfs 1.3

Dohko

Active Member
Joined
Mar 7, 2017
Messages
100
Reaction score
29
Hey friends, I need help with some bugs I'm getting when trying to compile the reward chest modifications on my server.

These are the modifications : Here

These are my erros when i try compile :

  1. src\iologindata.cpp(520): error C2819: type 'Database' does not have an overloaded member 'operator ->'
  2. src\database.h(30): note: see declaration of 'Database'
  3. src\iologindata.cpp(520): note: did you intend to use '.' instead?
  4. src\iologindata.cpp(520): error C2232: '->Database::storeQuery': left operand has 'class' type, use '.'
  5. src\iologindata.cpp(889): error C2819: type 'Database' does not have an overloaded member 'operator ->'
  6. src\database.h(30): note: see declaration of 'Database'
  7. src\iologindata.cpp(889): note: did you intend to use '.' instead?
  8. src\iologindata.cpp(889): error C2232: '->Database::executeQuery': left operand has 'class' type, use '.'
  9. src\item.cpp(58): error C2065: '_type': undeclared identifier
  10. src\luascript.cpp(12209): error C2039: 'isRewardBoss': is not a member of 'MonsterType'
  11. src\monsters.h(93): note: see declaration of 'MonsterType'
  12. src\luascript.cpp(12209): error C2660: 'LuaScriptInterface: PushBoolean': function does not take 1 arguments
  13. src\luascript.cpp(871): note: see declaration of 'LuaScriptInterface: PushBoolean'
  14. src\monsters.cpp(56): error C2065: 'isRewardBoss': undeclared identifier
  15. src\monsters.cpp(763): error C2039: 'isRewardBoss': is not a member of 'MonsterType'
  16. src\monsters.h(93): note: see declaration of 'MonsterType'
  17. src\otserv.cpp(250): warning C4242: 'argument': conversion from 'int32_t' to 'uint16_t', possible loss of data
  18. src\player.cpp(55): error C2064: term does not evaluate to a function taking 1 arguments
  19. src\reward.cpp(10): error C2248: 'Container::maxSize': cannot access private member declared in class 'Container'
  20. src\container.h(173): note: see declaration of 'Container::maxSize'
  21. src\container.h(51): note: see declaration of 'Container'
  22. src\reward.cpp(11): error C2248: 'Container::unlocked': cannot access private member declared in class 'Container'
  23. src\container.h(177): note: see declaration of 'Container::unlocked'
  24. src\container.h(51): note: see declaration of 'Container'
  25. src\reward.cpp(12): error C2248: 'Container: Pagination': cannot access private member declared in class 'Container'
  26. src\container.h(178): note: see declaration of 'Container: Pagination'
  27. src\container.h(51): note: see declaration of 'Container'
  28. src\rewardchest.cpp(8): error C2248: 'Container::maxSize': cannot access private member declared in class 'Container'
  29. src\container.h(173): note: see declaration of 'Container::maxSize'
  30. src\container.h(51): note: see declaration of 'Container'
  31. src\rewardchest.cpp(9): error C2248: 'Container::unlocked': cannot access private member declared in class 'Container'
  32. src\container.h(177): note: see declaration of 'Container::unlocked'
  33. src\container.h(51): note: see declaration of 'Container'
  34. src\rewardchest.cpp(10): error C2248: 'Container: Pagination': cannot access private member declared in class 'Container'
  35. src\container.h(178): note: see declaration of 'Container: Pagination'
  36. src\container.h(51): note: see declaration of 'Container'
Can someone help me? TFS 1.3
 

Similar threads

Back
Top