Çözüldü BossGaya ve MetinGaya Game Build Hata

Bu konu çözüme ulaştırılmıştır. Çözüm için konuya yazılan tüm yorumları okumayı unutmayın. Eğer konudaki yorumlar sorununuzu çözmediyse yeni bir konu açabilirsiniz.
Durum
İçerik kilitlendiği için mesaj gönderimine kapatıldı.

byhawk

Üye
Üye
Mesaj
14
Beğeni
2
Puan
665
Merhabalar.
Kırmızı Gaya olarak bilinen sistemi filesıma eklerken char.cpp'de aşağıdaki hatayı alıyorum. Kodları bi kaç kere incelememe rağmen herhangi bir hata bulamadım. Yardımcı olursanız sevinirim..

GameBuild:
char.cpp: In member function 'void CHARACTER::Initialize()':
char.cpp:566:2: error: 'm_bGemShopType' was not declared in this scope
  m_bGemShopType = false;
  ^
char.cpp:569:2: error: 'm_gemItems' was not declared in this scope
  m_gemItems = NULL;
  ^
char.cpp:570:2: error: 'm_dwGemNextRefresh' was not declared in this scope
  m_dwGemNextRefresh = 0;
  ^
char.cpp:572:2: error: 'm_gemBossItems' was not declared in this scope
  m_gemBossItems = NULL;
  ^
char.cpp:573:2: error: 'm_dwGemBossNextRefresh' was not declared in this scope
  m_dwGemBossNextRefresh = 0;
  ^
char.cpp: In member function 'void CHARACTER::Destroy()':
char.cpp:826:6: error: 'm_gemItems' was not declared in this scope
  if (m_gemItems)
      ^
In file included from stdafx.h:7:0,
                 from char.cpp:1:
debug_allocator.h:159:39: error: type '<type error>' argument given to 'delete', expected pointer
#define M2_DELETE_ARRAY(p) delete[] (p)
                                       ^
char.cpp:828:3: note: in expansion of macro 'M2_DELETE_ARRAY'
   M2_DELETE_ARRAY(m_gemItems);
   ^
char.cpp:834:6: error: 'm_gemBossItems' was not declared in this scope
  if (m_gemBossItems)
      ^
In file included from stdafx.h:7:0,
                 from char.cpp:1:
debug_allocator.h:159:39: error: type '<type error>' argument given to 'delete', expected pointer
#define M2_DELETE_ARRAY(p) delete[] (p)
                                       ^
char.cpp:836:3: note: in expansion of macro 'M2_DELETE_ARRAY'
   M2_DELETE_ARRAY(m_gemBossItems);
   ^
char.cpp: In member function 'void CHARACTER::CreatePlayerProto(TPlayerTable&)':
char.cpp:1642:19: error: 'GetGem' was not declared in this scope
  tab.gem = GetGem();
                   ^
char.cpp:1748:31: error: 'm_gemItems' was not declared in this scope
  thecore_memcpy(tab.gemItems, m_gemItems, sizeof(TPlayerGemItems) * GEM_SLOTS_MAX_NUM);
                               ^
char.cpp:1749:43: error: 'GetGemNextRefresh' was not declared in this scope
  tab.gem_next_refresh = GetGemNextRefresh();
                                           ^
char.cpp:1751:35: error: 'm_gemBossItems' was not declared in this scope
  thecore_memcpy(tab.gemBossItems, m_gemBossItems, sizeof(TPlayerGemItems) * GEM_SLOTS_MAX_NUM);
                                   ^
char.cpp: In member function 'void CHARACTER::PointsPacket()':
char.cpp:2158:14: error: 'POINT_GEM' was not declared in this scope
  pack.points[POINT_GEM] = GetGem();
              ^
char.cpp:2158:34: error: 'GetGem' was not declared in this scope
  pack.points[POINT_GEM] = GetGem();
                                  ^
char.cpp: In member function 'void CHARACTER::SetPlayerProto(const TPlayerTable*)':
char.cpp:2327:6: error: 'm_gemItems' was not declared in this scope
  if (m_gemItems)
      ^
In file included from stdafx.h:7:0,
                 from char.cpp:1:
debug_allocator.h:159:39: error: type '<type error>' argument given to 'delete', expected pointer
#define M2_DELETE_ARRAY(p) delete[] (p)
                                       ^
char.cpp:2328:3: note: in expansion of macro 'M2_DELETE_ARRAY'
   M2_DELETE_ARRAY(m_gemItems);
   ^
char.cpp:2330:2: error: 'm_gemItems' was not declared in this scope
  m_gemItems = M2_NEW TPlayerGemItems[GEM_SLOTS_MAX_NUM];
  ^
char.cpp:2333:6: error: 'm_gemBossItems' was not declared in this scope
  if (m_gemBossItems)
      ^
In file included from stdafx.h:7:0,
                 from char.cpp:1:
debug_allocator.h:159:39: error: type '<type error>' argument given to 'delete', expected pointer
#define M2_DELETE_ARRAY(p) delete[] (p)
                                       ^
char.cpp:2334:3: note: in expansion of macro 'M2_DELETE_ARRAY'
   M2_DELETE_ARRAY(m_gemBossItems);
   ^
char.cpp:2336:2: error: 'm_gemBossItems' was not declared in this scope
  m_gemBossItems = M2_NEW TPlayerGemItems[GEM_SLOTS_MAX_NUM];
  ^
char.cpp:2389:15: error: 'SetGem' was not declared in this scope
  SetGem(t->gem);
               ^
char.cpp:2437:2: error: 'm_dwGemNextRefresh' was not declared in this scope
  m_dwGemNextRefresh = t->gem_next_refresh;
  ^
char.cpp: In member function 'void CHARACTER::PointChange(BYTE, int, bool, bool)':
char.cpp:4183:8: error: 'POINT_GEM' was not declared in this scope
   case POINT_GEM:
        ^
char.cpp:4185:58: error: 'GetGem' was not declared in this scope
    const int64_t nTotalGem = static_cast<int64_t>(GetGem()) + static_cast<int64_t>(amount);
                                                          ^
char.cpp:4193:28: error: 'SetGem' was not declared in this scope
    SetGem(GetGem() + amount);
                            ^
char.cpp: In member function 'void CHARACTER::ApplyPoint(BYTE, int)':
char.cpp:4922:8: error: 'APPLY_ATTBONUS_BOSS' was not declared in this scope
   case APPLY_ATTBONUS_BOSS:
        ^
char.cpp: At global scope:
char.cpp:13086:38: error: no 'void CHARACTER::OpenGemShopFirstTime()' member function declared in class 'CHARACTER'
void CHARACTER::OpenGemShopFirstTime()
                                      ^
char.cpp:13101:37: error: no 'void CHARACTER::RefreshGemShopItems()' member function declared in class 'CHARACTER'
void CHARACTER::RefreshGemShopItems()
                                     ^
char.cpp:13125:40: error: no 'void CHARACTER::RefreshGemShopWithItem()' member function declared in class 'CHARACTER'
void CHARACTER::RefreshGemShopWithItem()
                                        ^
char.cpp:13149:37: error: no 'void CHARACTER::GemShopBuy(BYTE)' member function declared in class 'CHARACTER'
void CHARACTER::GemShopBuy(BYTE bPos)
                                     ^
char.cpp:13273:37: error: no 'void CHARACTER::GemShopAdd(BYTE)' member function declared in class 'CHARACTER'
void CHARACTER::GemShopAdd(BYTE bPos)
                                     ^
char.cpp:13303:32: error: no 'void CHARACTER::RefreshGemShop()' member function declared in class 'CHARACTER'
void CHARACTER::RefreshGemShop()
                                ^
char.cpp:13319:45: error: no 'void CHARACTER::OpenGemShop(bool)' member function declared in class 'CHARACTER'
void CHARACTER::OpenGemShop(bool gemShopType)
                                             ^
char.cpp:13385:93: error: no 'bool CHARACTER::CreateGaya(int, LPITEM, int, int)' member function declared in class 'CHARACTER'
bool CHARACTER::CreateGaya(int glimmerstone_count, LPITEM metinstone_item, int cost, int pct)
 
En son bir moderatör tarafından düzenlenmiş:
Eklediğin sistemin char.h dosyası olduğuna emin misin?
+ ekstradan POINTLERIDE görmüyor tekrar kontrol et kodlarını :)
 
Çözüm
Durum
İçerik kilitlendiği için mesaj gönderimine kapatıldı.
Geri
Üst