SERVER MAINTENANCE MODE GMS CAN ENTER C++

  • Konuyu açan Konuyu açan M29
  • Açılış Tarihi Açılış Tarihi
  • Yanıt Yanıt 8
  • Gösterim Gösterim 413

M29

MT Üye
MT Üye
Mesaj
316
Çözümler
7
Beğeni
182
Puan
749
Ticaret Puanı
0
Hi guys
This system allows you to do server maintenance and only moderators can access it.

When you make this field 0 only observers will be allowed in. When you make it 1 all players will be allowed in.

1730996738525.webp




Hope someone helps :love:
 

Dosya Eklentileri

En son bir moderatör tarafından düzenlenmiş:
Could you please provide a screenshot/screen capture of how this system works in-game?
 
Sanırım gcc sürümü yüksek bu olayın

ben eklerken hata aldım da
Kod:
Genişlet Daralt Kopyala
db.cpp: In member function 'void DBManager::AnalyzeReturnQuery(SQLMsg*)':
db.cpp:432:112: error: no matching function for call to 'std::auto_ptr<_SQLMsg>:                                                          :auto_ptr(std::unique_ptr<_SQLMsg>)'
  432 |       std::auto_ptr<SQLMsg> statusmsg(DBManager::instance().DirectQuery(                                                          "SELECT status FROM account.ftyazilim"));
      |                                                                                                                                                                          ^
In file included from /usr/local/lib/gcc10/include/c++/memory:87,
                 from ../../libsql/AsyncSQL.h:16,
                 from db.h:4,
                 from db.cpp:5:
/usr/local/lib/gcc10/include/c++/backward/auto_ptr.h:266:7: note: candidate: 'st                                                          d::auto_ptr< <template-parameter-1-1> >::auto_ptr(std::auto_ptr_ref<_Tp>) [with                                                           _Tp = _SQLMsg]'
  266 |       auto_ptr(auto_ptr_ref<element_type> __ref) throw()
      |       ^~~~~~~~
/usr/local/lib/gcc10/include/c++/backward/auto_ptr.h:266:43: note:   no known co                                                          nversion for argument 1 from 'std::unique_ptr<_SQLMsg>' to 'std::auto_ptr_ref<_S                                                          QLMsg>'
  266 |       auto_ptr(auto_ptr_ref<element_type> __ref) throw()
      |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
/usr/local/lib/gcc10/include/c++/backward/auto_ptr.h:127:9: note: candidate: 'te                                                          mplate<class _Tp1> std::auto_ptr< <template-parameter-1-1> >::auto_ptr(std::auto                                                          _ptr<_Up>&) [with _Tp1 = _Tp1; _Tp = _SQLMsg]'
  127 |         auto_ptr(auto_ptr<_Tp1>& __a) throw() : _M_ptr(__a.release()) {                                                           }
      |         ^~~~~~~~
/usr/local/lib/gcc10/include/c++/backward/auto_ptr.h:127:9: note:   template arg                                                          ument deduction/substitution failed:
db.cpp:432:112: note:   'std::unique_ptr<_SQLMsg>' is not derived from 'std::aut                                                          o_ptr<_Up>'
  432 |       std::auto_ptr<SQLMsg> statusmsg(DBManager::instance().DirectQuery(                                                          "SELECT status FROM account.ftyazilim"));
      |                                                                                                                                                                          ^
In file included from /usr/local/lib/gcc10/include/c++/memory:87,
                 from ../../libsql/AsyncSQL.h:16,
                 from db.h:4,
                 from db.cpp:5:
/usr/local/lib/gcc10/include/c++/backward/auto_ptr.h:114:7: note: candidate: 'st                                                          d::auto_ptr< <template-parameter-1-1> >::auto_ptr(std::auto_ptr< <template-param                                                          eter-1-1> >&) [with _Tp = _SQLMsg]'
  114 |       auto_ptr(auto_ptr& __a) throw() : _M_ptr(__a.release()) { }
      |       ^~~~~~~~
/usr/local/lib/gcc10/include/c++/backward/auto_ptr.h:114:26: note:   no known co                                                          nversion for argument 1 from 'std::unique_ptr<_SQLMsg>' to 'std::auto_ptr<_SQLMs                                                          g>&'
  114 |       auto_ptr(auto_ptr& __a) throw() : _M_ptr(__a.release()) { }
      |                ~~~~~~~~~~^~~
/usr/local/lib/gcc10/include/c++/backward/auto_ptr.h:105:7: note: candidate: 'st                                                          d::auto_ptr< <template-parameter-1-1> >::auto_ptr(std::auto_ptr< <template-param                                                          eter-1-1> >::element_type*) [with _Tp = _SQLMsg; std::auto_ptr< <template-parame                                                          ter-1-1> >::element_type = std::auto_ptr<_SQLMsg>::element_type]'
  105 |       auto_ptr(element_type* __p = 0) throw() : _M_ptr(__p) { }
      |       ^~~~~~~~
/usr/local/lib/gcc10/include/c++/backward/auto_ptr.h:105:30: note:   no known co                                                          nversion for argument 1 from 'std::unique_ptr<_SQLMsg>' to 'std::auto_ptr<_SQLMs                                                          g>::element_type*'
  105 |       auto_ptr(element_type* __p = 0) throw() : _M_ptr(__p) { }
      |                ~~~~~~~~~~~~~~^~~~~~~
db.cpp:447:145: error: no matching function for call to 'std::auto_ptr<_SQLMsg>:                                                          :auto_ptr(std::unique_ptr<_SQLMsg>)'
  447 |        std::auto_ptr<SQLMsg> _gm_login(DBManager::instance().DirectQuery                                                          ("SELECT mAccount FROM common.gmlist WHERE mAccount='%s'", pinfo->login));
      |                                                                                                                                                                                                           ^
In file included from /usr/local/lib/gcc10/include/c++/memory:87,
                 from ../../libsql/AsyncSQL.h:16,
                 from db.h:4,
                 from db.cpp:5:
/usr/local/lib/gcc10/include/c++/backward/auto_ptr.h:266:7: note: candidate: 'st                                                          d::auto_ptr< <template-parameter-1-1> >::auto_ptr(std::auto_ptr_ref<_Tp>) [with                                                           _Tp = _SQLMsg]'
  266 |       auto_ptr(auto_ptr_ref<element_type> __ref) throw()
      |       ^~~~~~~~
/usr/local/lib/gcc10/include/c++/backward/auto_ptr.h:266:43: note:   no known co                                                          nversion for argument 1 from 'std::unique_ptr<_SQLMsg>' to 'std::auto_ptr_ref<_S                                                          QLMsg>'
  266 |       auto_ptr(auto_ptr_ref<element_type> __ref) throw()
      |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
/usr/local/lib/gcc10/include/c++/backward/auto_ptr.h:127:9: not: aday: 'te mplate<sınıf _Tp1> std::auto_ptr< <şablon-parametresi-1-1> >::auto_ptr(std::auto _ptr<_Yukarı>&) [_Tp1 = _Tp1; _Tp = _SQLMsg ile]'
  127 | auto_ptr(auto_ptr<_Tp1>& __a) fırlat() : _M_ptr(__a.release()) { }
      | ^~~~~~~~
/usr/local/lib/gcc10/include/c++/backward/auto_ptr.h:127:9: not: şablon argümanı çıkarımı/değiştirmesi başarısız oldu:
db.cpp:447:145: not: 'std::unique_ptr<_SQLMsg>' 'std::aut o_ptr<_Up>'dan türetilmemiştir
  447 | std::auto_ptr<SQLMsg> _gm_login(DBManager::instance().DirectQuery ("mAccount'u common.gmlist'ten SEÇİN WHERE mAccount='%s'", pinfo->giriş));
      | ^
/usr/local/lib/gcc10/include/c++/memory:87'den dahil edilen dosyada,
                 ../../libsql/AsyncSQL.h:16 adresinden,
                 db.h:4'ten,
                 db.cpp:5'ten:
/usr/local/lib/gcc10/include/c++/backward/auto_ptr.h:114:7: not: aday: 'st d::auto_ptr< <şablon-parametresi-1-1> >::auto_ptr(std::auto_ptr< <şablon-parametresi-eter-1-1> >&) [_Tp = _SQLMsg ile]'
  114 | auto_ptr(auto_ptr& __a) fırlat() : _M_ptr(__a.release()) { }
      | ^~~~~~~~
/usr/local/lib/gcc10/include/c++/backward/auto_ptr.h:114:26: not: 'std::unique_ptr<_SQLMsg>'den 'std::auto_ptr<_SQLMs g>&'ye 1. argüman için bilinen bir dönüşüm yok
  114 | auto_ptr(auto_ptr& __a) fırlat() : _M_ptr(__a.release()) { }
      | ~~~~~~~~~~^~~
/usr/local/lib/gcc10/include/c++/backward/auto_ptr.h:105:7: not: aday: 'st d::auto_ptr< <şablon-parametresi-1-1> >::auto_ptr(std::auto_ptr< <şablon-parametresi eter-1-1> >::element_type*) [_Tp = _SQLMsg ile; std::auto_ptr< <şablon-parametresi ter-1-1> >::element_type = std::auto_ptr<_SQLMsg>::element_type]'
  105 | auto_ptr(element_type* __p = 0) fırlat() : _M_ptr(__p) { }
      | ^~~~~~~~
/usr/local/lib/gcc10/include/c++/backward/auto_ptr.h:105:30: not: 'std::unique_ptr<_SQLMsg>'den 'std::auto_ptr<_SQLMs g>::element_type*'e 1. argüman için bilinen bir dönüşüm yok
  105 | auto_ptr(element_type* __p = 0) fırlat() : _M_ptr(__p) { }
      | ~~~~~~~~~~~~~~^~~~~~~
gmake[1]: *** [Makefile:158: .obj/db.o] Hata 1
gmake[1]: '/usr/src/Server/game/src' dizininden çıkılıyor
gmake: *** [Makefile:111: all] Hata 2
root@turkmmo:/usr/src/Sunucu #
[/KOD]
 
Sanırım gcc sürümü yüksek bu olayın

ben eklerken hata aldım da
Kod:
Genişlet Daralt Kopyala
db.cpp: In member function 'void DBManager::AnalyzeReturnQuery(SQLMsg*)':
db.cpp:432:112: error: no matching function for call to 'std::auto_ptr<_SQLMsg>:                                                          :auto_ptr(std::unique_ptr<_SQLMsg>)'
  432 |       std::auto_ptr<SQLMsg> statusmsg(DBManager::instance().DirectQuery(                                                          "SELECT status FROM account.ftyazilim"));
      |                                                                                                                                                                          ^
In file included from /usr/local/lib/gcc10/include/c++/memory:87,
                 from ../../libsql/AsyncSQL.h:16,
                 from db.h:4,
                 from db.cpp:5:
/usr/local/lib/gcc10/include/c++/backward/auto_ptr.h:266:7: note: candidate: 'st                                                          d::auto_ptr< <template-parameter-1-1> >::auto_ptr(std::auto_ptr_ref<_Tp>) [with                                                           _Tp = _SQLMsg]'
  266 |       auto_ptr(auto_ptr_ref<element_type> __ref) throw()
      |       ^~~~~~~~
/usr/local/lib/gcc10/include/c++/backward/auto_ptr.h:266:43: note:   no known co                                                          nversion for argument 1 from 'std::unique_ptr<_SQLMsg>' to 'std::auto_ptr_ref<_S                                                          QLMsg>'
  266 |       auto_ptr(auto_ptr_ref<element_type> __ref) throw()
      |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
/usr/local/lib/gcc10/include/c++/backward/auto_ptr.h:127:9: note: candidate: 'te                                                          mplate<class _Tp1> std::auto_ptr< <template-parameter-1-1> >::auto_ptr(std::auto                                                          _ptr<_Up>&) [with _Tp1 = _Tp1; _Tp = _SQLMsg]'
  127 |         auto_ptr(auto_ptr<_Tp1>& __a) throw() : _M_ptr(__a.release()) {                                                           }
      |         ^~~~~~~~
/usr/local/lib/gcc10/include/c++/backward/auto_ptr.h:127:9: note:   template arg                                                          ument deduction/substitution failed:
db.cpp:432:112: note:   'std::unique_ptr<_SQLMsg>' is not derived from 'std::aut                                                          o_ptr<_Up>'
  432 |       std::auto_ptr<SQLMsg> statusmsg(DBManager::instance().DirectQuery(                                                          "SELECT status FROM account.ftyazilim"));
      |                                                                                                                                                                          ^
In file included from /usr/local/lib/gcc10/include/c++/memory:87,
                 from ../../libsql/AsyncSQL.h:16,
                 from db.h:4,
                 from db.cpp:5:
/usr/local/lib/gcc10/include/c++/backward/auto_ptr.h:114:7: note: candidate: 'st                                                          d::auto_ptr< <template-parameter-1-1> >::auto_ptr(std::auto_ptr< <template-param                                                          eter-1-1> >&) [with _Tp = _SQLMsg]'
  114 |       auto_ptr(auto_ptr& __a) throw() : _M_ptr(__a.release()) { }
      |       ^~~~~~~~
/usr/local/lib/gcc10/include/c++/backward/auto_ptr.h:114:26: note:   no known co                                                          nversion for argument 1 from 'std::unique_ptr<_SQLMsg>' to 'std::auto_ptr<_SQLMs                                                          g>&'
  114 |       auto_ptr(auto_ptr& __a) throw() : _M_ptr(__a.release()) { }
      |                ~~~~~~~~~~^~~
/usr/local/lib/gcc10/include/c++/backward/auto_ptr.h:105:7: note: candidate: 'st                                                          d::auto_ptr< <template-parameter-1-1> >::auto_ptr(std::auto_ptr< <template-param                                                          eter-1-1> >::element_type*) [with _Tp = _SQLMsg; std::auto_ptr< <template-parame                                                          ter-1-1> >::element_type = std::auto_ptr<_SQLMsg>::element_type]'
  105 |       auto_ptr(element_type* __p = 0) throw() : _M_ptr(__p) { }
      |       ^~~~~~~~
/usr/local/lib/gcc10/include/c++/backward/auto_ptr.h:105:30: note:   no known co                                                          nversion for argument 1 from 'std::unique_ptr<_SQLMsg>' to 'std::auto_ptr<_SQLMs                                                          g>::element_type*'
  105 |       auto_ptr(element_type* __p = 0) throw() : _M_ptr(__p) { }
      |                ~~~~~~~~~~~~~~^~~~~~~
db.cpp:447:145: error: no matching function for call to 'std::auto_ptr<_SQLMsg>:                                                          :auto_ptr(std::unique_ptr<_SQLMsg>)'
  447 |        std::auto_ptr<SQLMsg> _gm_login(DBManager::instance().DirectQuery                                                          ("SELECT mAccount FROM common.gmlist WHERE mAccount='%s'", pinfo->login));
      |                                                                                                                                                                                                           ^
In file included from /usr/local/lib/gcc10/include/c++/memory:87,
                 from ../../libsql/AsyncSQL.h:16,
                 from db.h:4,
                 from db.cpp:5:
/usr/local/lib/gcc10/include/c++/backward/auto_ptr.h:266:7: note: candidate: 'st                                                          d::auto_ptr< <template-parameter-1-1> >::auto_ptr(std::auto_ptr_ref<_Tp>) [with                                                           _Tp = _SQLMsg]'
  266 |       auto_ptr(auto_ptr_ref<element_type> __ref) throw()
      |       ^~~~~~~~
/usr/local/lib/gcc10/include/c++/backward/auto_ptr.h:266:43: note:   no known co                                                          nversion for argument 1 from 'std::unique_ptr<_SQLMsg>' to 'std::auto_ptr_ref<_S                                                          QLMsg>'
  266 |       auto_ptr(auto_ptr_ref<element_type> __ref) throw()
      |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
/usr/local/lib/gcc10/include/c++/backward/auto_ptr.h:127:9: not: aday: 'te mplate<sınıf _Tp1> std::auto_ptr< <şablon-parametresi-1-1> >::auto_ptr(std::auto _ptr<_Yukarı>&) [_Tp1 = _Tp1; _Tp = _SQLMsg ile]'
  127 | auto_ptr(auto_ptr<_Tp1>& __a) fırlat() : _M_ptr(__a.release()) { }
      | ^~~~~~~~
/usr/local/lib/gcc10/include/c++/backward/auto_ptr.h:127:9: not: şablon argümanı çıkarımı/değiştirmesi başarısız oldu:
db.cpp:447:145: not: 'std::unique_ptr<_SQLMsg>' 'std::aut o_ptr<_Up>'dan türetilmemiştir
  447 | std::auto_ptr<SQLMsg> _gm_login(DBManager::instance().DirectQuery ("mAccount'u common.gmlist'ten SEÇİN WHERE mAccount='%s'", pinfo->giriş));
      | ^
/usr/local/lib/gcc10/include/c++/memory:87'den dahil edilen dosyada,
                 ../../libsql/AsyncSQL.h:16 adresinden,
                 db.h:4'ten,
                 db.cpp:5'ten:
/usr/local/lib/gcc10/include/c++/backward/auto_ptr.h:114:7: not: aday: 'st d::auto_ptr< <şablon-parametresi-1-1> >::auto_ptr(std::auto_ptr< <şablon-parametresi-eter-1-1> >&) [_Tp = _SQLMsg ile]'
  114 | auto_ptr(auto_ptr& __a) fırlat() : _M_ptr(__a.release()) { }
      | ^~~~~~~~
/usr/local/lib/gcc10/include/c++/backward/auto_ptr.h:114:26: not: 'std::unique_ptr<_SQLMsg>'den 'std::auto_ptr<_SQLMs g>&'ye 1. argüman için bilinen bir dönüşüm yok
  114 | auto_ptr(auto_ptr& __a) fırlat() : _M_ptr(__a.release()) { }
      | ~~~~~~~~~~^~~
/usr/local/lib/gcc10/include/c++/backward/auto_ptr.h:105:7: not: aday: 'st d::auto_ptr< <şablon-parametresi-1-1> >::auto_ptr(std::auto_ptr< <şablon-parametresi eter-1-1> >::element_type*) [_Tp = _SQLMsg ile; std::auto_ptr< <şablon-parametresi ter-1-1> >::element_type = std::auto_ptr<_SQLMsg>::element_type]'
  105 | auto_ptr(element_type* __p = 0) fırlat() : _M_ptr(__p) { }
      | ^~~~~~~~
/usr/local/lib/gcc10/include/c++/backward/auto_ptr.h:105:30: not: 'std::unique_ptr<_SQLMsg>'den 'std::auto_ptr<_SQLMs g>::element_type*'e 1. argüman için bilinen bir dönüşüm yok
  105 | auto_ptr(element_type* __p = 0) fırlat() : _M_ptr(__p) { }
      | ~~~~~~~~~~~~~~^~~~~~~
gmake[1]: *** [Makefile:158: .obj/db.o] Hata 1
gmake[1]: '/usr/src/Server/game/src' dizininden çıkılıyor
gmake: *** [Makefile:111: all] Hata 2
root@turkmmo:/usr/src/Sunucu #
[/KOD]
What is your version? gcc ?
 
Sanırım gcc sürümü yüksek bu olayın

ben eklerken hata aldım da
Kod:
Genişlet Daralt Kopyala
db.cpp: In member function 'void DBManager::AnalyzeReturnQuery(SQLMsg*)':
db.cpp:432:112: error: no matching function for call to 'std::auto_ptr<_SQLMsg>:                                                          :auto_ptr(std::unique_ptr<_SQLMsg>)'
  432 |       std::auto_ptr<SQLMsg> statusmsg(DBManager::instance().DirectQuery(                                                          "SELECT status FROM account.ftyazilim"));
      |                                                                                                                                                                          ^
In file included from /usr/local/lib/gcc10/include/c++/memory:87,
                 from ../../libsql/AsyncSQL.h:16,
                 from db.h:4,
                 from db.cpp:5:
/usr/local/lib/gcc10/include/c++/backward/auto_ptr.h:266:7: note: candidate: 'st                                                          d::auto_ptr< <template-parameter-1-1> >::auto_ptr(std::auto_ptr_ref<_Tp>) [with                                                           _Tp = _SQLMsg]'
  266 |       auto_ptr(auto_ptr_ref<element_type> __ref) throw()
      |       ^~~~~~~~
/usr/local/lib/gcc10/include/c++/backward/auto_ptr.h:266:43: note:   no known co                                                          nversion for argument 1 from 'std::unique_ptr<_SQLMsg>' to 'std::auto_ptr_ref<_S                                                          QLMsg>'
  266 |       auto_ptr(auto_ptr_ref<element_type> __ref) throw()
      |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
/usr/local/lib/gcc10/include/c++/backward/auto_ptr.h:127:9: note: candidate: 'te                                                          mplate<class _Tp1> std::auto_ptr< <template-parameter-1-1> >::auto_ptr(std::auto                                                          _ptr<_Up>&) [with _Tp1 = _Tp1; _Tp = _SQLMsg]'
  127 |         auto_ptr(auto_ptr<_Tp1>& __a) throw() : _M_ptr(__a.release()) {                                                           }
      |         ^~~~~~~~
/usr/local/lib/gcc10/include/c++/backward/auto_ptr.h:127:9: note:   template arg                                                          ument deduction/substitution failed:
db.cpp:432:112: note:   'std::unique_ptr<_SQLMsg>' is not derived from 'std::aut                                                          o_ptr<_Up>'
  432 |       std::auto_ptr<SQLMsg> statusmsg(DBManager::instance().DirectQuery(                                                          "SELECT status FROM account.ftyazilim"));
      |                                                                                                                                                                          ^
In file included from /usr/local/lib/gcc10/include/c++/memory:87,
                 from ../../libsql/AsyncSQL.h:16,
                 from db.h:4,
                 from db.cpp:5:
/usr/local/lib/gcc10/include/c++/backward/auto_ptr.h:114:7: note: candidate: 'st                                                          d::auto_ptr< <template-parameter-1-1> >::auto_ptr(std::auto_ptr< <template-param                                                          eter-1-1> >&) [with _Tp = _SQLMsg]'
  114 |       auto_ptr(auto_ptr& __a) throw() : _M_ptr(__a.release()) { }
      |       ^~~~~~~~
/usr/local/lib/gcc10/include/c++/backward/auto_ptr.h:114:26: note:   no known co                                                          nversion for argument 1 from 'std::unique_ptr<_SQLMsg>' to 'std::auto_ptr<_SQLMs                                                          g>&'
  114 |       auto_ptr(auto_ptr& __a) throw() : _M_ptr(__a.release()) { }
      |                ~~~~~~~~~~^~~
/usr/local/lib/gcc10/include/c++/backward/auto_ptr.h:105:7: note: candidate: 'st                                                          d::auto_ptr< <template-parameter-1-1> >::auto_ptr(std::auto_ptr< <template-param                                                          eter-1-1> >::element_type*) [with _Tp = _SQLMsg; std::auto_ptr< <template-parame                                                          ter-1-1> >::element_type = std::auto_ptr<_SQLMsg>::element_type]'
  105 |       auto_ptr(element_type* __p = 0) throw() : _M_ptr(__p) { }
      |       ^~~~~~~~
/usr/local/lib/gcc10/include/c++/backward/auto_ptr.h:105:30: note:   no known co                                                          nversion for argument 1 from 'std::unique_ptr<_SQLMsg>' to 'std::auto_ptr<_SQLMs                                                          g>::element_type*'
  105 |       auto_ptr(element_type* __p = 0) throw() : _M_ptr(__p) { }
      |                ~~~~~~~~~~~~~~^~~~~~~
db.cpp:447:145: error: no matching function for call to 'std::auto_ptr<_SQLMsg>:                                                          :auto_ptr(std::unique_ptr<_SQLMsg>)'
  447 |        std::auto_ptr<SQLMsg> _gm_login(DBManager::instance().DirectQuery                                                          ("SELECT mAccount FROM common.gmlist WHERE mAccount='%s'", pinfo->login));
      |                                                                                                                                                                                                           ^
In file included from /usr/local/lib/gcc10/include/c++/memory:87,
                 from ../../libsql/AsyncSQL.h:16,
                 from db.h:4,
                 from db.cpp:5:
/usr/local/lib/gcc10/include/c++/backward/auto_ptr.h:266:7: note: candidate: 'st                                                          d::auto_ptr< <template-parameter-1-1> >::auto_ptr(std::auto_ptr_ref<_Tp>) [with                                                           _Tp = _SQLMsg]'
  266 |       auto_ptr(auto_ptr_ref<element_type> __ref) throw()
      |       ^~~~~~~~
/usr/local/lib/gcc10/include/c++/backward/auto_ptr.h:266:43: note:   no known co                                                          nversion for argument 1 from 'std::unique_ptr<_SQLMsg>' to 'std::auto_ptr_ref<_S                                                          QLMsg>'
  266 |       auto_ptr(auto_ptr_ref<element_type> __ref) throw()
      |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
/usr/local/lib/gcc10/include/c++/backward/auto_ptr.h:127:9: not: aday: 'te mplate<sınıf _Tp1> std::auto_ptr< <şablon-parametresi-1-1> >::auto_ptr(std::auto _ptr<_Yukarı>&) [_Tp1 = _Tp1; _Tp = _SQLMsg ile]'
  127 | auto_ptr(auto_ptr<_Tp1>& __a) fırlat() : _M_ptr(__a.release()) { }
      | ^~~~~~~~
/usr/local/lib/gcc10/include/c++/backward/auto_ptr.h:127:9: not: şablon argümanı çıkarımı/değiştirmesi başarısız oldu:
db.cpp:447:145: not: 'std::unique_ptr<_SQLMsg>' 'std::aut o_ptr<_Up>'dan türetilmemiştir
  447 | std::auto_ptr<SQLMsg> _gm_login(DBManager::instance().DirectQuery ("mAccount'u common.gmlist'ten SEÇİN WHERE mAccount='%s'", pinfo->giriş));
      | ^
/usr/local/lib/gcc10/include/c++/memory:87'den dahil edilen dosyada,
                 ../../libsql/AsyncSQL.h:16 adresinden,
                 db.h:4'ten,
                 db.cpp:5'ten:
/usr/local/lib/gcc10/include/c++/backward/auto_ptr.h:114:7: not: aday: 'st d::auto_ptr< <şablon-parametresi-1-1> >::auto_ptr(std::auto_ptr< <şablon-parametresi-eter-1-1> >&) [_Tp = _SQLMsg ile]'
  114 | auto_ptr(auto_ptr& __a) fırlat() : _M_ptr(__a.release()) { }
      | ^~~~~~~~
/usr/local/lib/gcc10/include/c++/backward/auto_ptr.h:114:26: not: 'std::unique_ptr<_SQLMsg>'den 'std::auto_ptr<_SQLMs g>&'ye 1. argüman için bilinen bir dönüşüm yok
  114 | auto_ptr(auto_ptr& __a) fırlat() : _M_ptr(__a.release()) { }
      | ~~~~~~~~~~^~~
/usr/local/lib/gcc10/include/c++/backward/auto_ptr.h:105:7: not: aday: 'st d::auto_ptr< <şablon-parametresi-1-1> >::auto_ptr(std::auto_ptr< <şablon-parametresi eter-1-1> >::element_type*) [_Tp = _SQLMsg ile; std::auto_ptr< <şablon-parametresi ter-1-1> >::element_type = std::auto_ptr<_SQLMsg>::element_type]'
  105 | auto_ptr(element_type* __p = 0) fırlat() : _M_ptr(__p) { }
      | ^~~~~~~~
/usr/local/lib/gcc10/include/c++/backward/auto_ptr.h:105:30: not: 'std::unique_ptr<_SQLMsg>'den 'std::auto_ptr<_SQLMs g>::element_type*'e 1. argüman için bilinen bir dönüşüm yok
  105 | auto_ptr(element_type* __p = 0) fırlat() : _M_ptr(__p) { }
      | ~~~~~~~~~~~~~~^~~~~~~
gmake[1]: *** [Makefile:158: .obj/db.o] Hata 1
gmake[1]: '/usr/src/Server/game/src' dizininden çıkılıyor
gmake: *** [Makefile:111: all] Hata 2
root@turkmmo:/usr/src/Sunucu #
[/KOD]
auto_ptr -> bunları unique_ptr yap sorun düzelir
 
bu konuyu denedim çalışıyormu diye fakat normal oyuncu olarak giriş sağlayabildim ücretsiz paylaştığım dosyadan alabilirsiniz yada buraya gerekli kodları bırakıyorum ekleyebilrsiniz

db.cpp:
Genişlet Daralt Kopyala
arat :

                        {
                            if (strncmp(szCreateDate, g_stBlockDate.c_str(), 8) >= 0)
                            {
                                LoginFailure(d, "BLKLOGIN");
                                sys_log(0, "   BLKLOGIN");
                                M2_DELETE(pinfo);
                                break;
                            }

                            char szQuery[1024];
                            snprintf(szQuery, sizeof(szQuery), "UPDATE account SET last_play=NOW() WHERE id=%u", dwID);
                            DBManager::instance().Query(szQuery);
                        } // bunun altına ekle

eklenecek kod :

 // bakım modu
                        bool bServerStatus = false;
                        BYTE status_server = 0;
                        std::unique_ptr<SQLMsg> statusmsg(DBManager::instance().DirectQuery("SELECT status FROM account.server"));
                        if (!statusmsg->uiSQLErrno)
                        {
                            if (statusmsg->Get()->uiNumRows)
                            {
                                while (MYSQL_ROW row_clientv = mysql_fetch_row(statusmsg->Get()->pSQLResult)) {
                                    str_to_number(status_server, row_clientv[0]);
                                    if (status_server == 0)
                                        bServerStatus = true;
                                }
                            }
                        }
                       
                        if (bServerStatus == true)
                        {
                            std::unique_ptr<SQLMsg> _gm_login(DBManager::instance().DirectQuery("SELECT mAccount FROM common.gmlist WHERE mAccount='%s'", pinfo->login));
                            if (!_gm_login->uiSQLErrno)
                            {
                                if (_gm_login->Get()->uiNumRows < 1)
                                {
                                    LoginFailure(d, "NOSERVER");
                                    M2_DELETE(pinfo);
                                    bServerStatus = false;
                                    break;
                                }
                            }
                        }
 // bakım modu




not malware devre dışı galiba virüs sanmayın vt içeriğini
 
Uyarı: Bu konu açıldığından bu yana baya zaman geçmiş.
Muhtemelen daha fazla tartışma gerekli değildir ki bu durumda yeni bir konu başlatmayı öneririz. Eğer yine de cevabınızın gerekli olduğunu düşünüyorsanız buna rağmen cevap verebilirsiniz.
Geri
Üst