Ir para conteúdo
Banner com Efeitos

Featured Replies

Postado


protocolgame.cpp: In member function ‘void ProtocolGame::spectate(const string&, const string&)’:
protocolgame.cpp:141:27: error: ‘stoi’ is not a member of ‘std’
  uint32_t total = ctime - std::stoi(value);
                           ^
protocolgame.cpp:172:35: error: request for member ‘addProtocolToAutosend’ in ‘OutputMessagePool::getInstance()’, which is of pointer type ‘OutputMessagePool*’ (maybe you meant to use ‘->’ ?)
  OutputMessagePool::getInstance().addProtocolToAutosend(shared_from_this());
                                   ^
protocolgame.cpp:172:74: error: ‘shared_from_this’ was not declared in this scope
  OutputMessagePool::getInstance().addProtocolToAutosend(shared_from_this());
                                                                          ^
protocolgame.cpp: In member function ‘bool ProtocolGame::spectatePlayer(const string&, const string&)’:
protocolgame.cpp:206:24: error: ‘class Spectators’ has no member named ‘resetOwner’
    player_old->client->resetOwner();
                        ^
protocolgame.cpp:216:2: error: ‘knownCreatureSet’ was not declared in this scope
  knownCreatureSet.clear();
  ^
protocolgame.cpp:229:27: error: ‘stoi’ is not a member of ‘std’
  uint32_t total = ctime - std::stoi(value);
                           ^
protocolgame.cpp:258:35: error: request for member ‘addProtocolToAutosend’ in ‘OutputMessagePool::getInstance()’, which is of pointer type ‘OutputMessagePool*’ (maybe you meant to use ‘->’ ?)
  OutputMessagePool::getInstance().addProtocolToAutosend(shared_from_this());
                                   ^
protocolgame.cpp:258:74: error: ‘shared_from_this’ was not declared in this scope
  OutputMessagePool::getInstance().addProtocolToAutosend(shared_from_this());
                                                                          ^
protocolgame.cpp: In member function ‘void ProtocolGame::returnPlayer()’:
protocolgame.cpp:273:35: error: ‘getThis’ was not declared in this scope
  player->client->setOwner(getThis());
                                   ^
protocolgame.cpp:276:2: error: ‘knownCreatureSet’ was not declared in this scope
  knownCreatureSet.clear();
  ^
protocolgame.cpp: In member function ‘void ProtocolGame::spectatorTurn(uint8_t)’:
protocolgame.cpp:325:30: warning: comparison is always false due to limited range of data type [-Wtype-limits]
  if (index == 0 && direction == -1) {
                              ^
protocolgame.cpp:349:2: error: ‘knownCreatureSet’ was not declared in this scope
  knownCreatureSet.clear();
  ^
 

[progress=green]50[/progress]

 

  • Respostas 7
  • Visualizações 2.6k
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • para adicionar o look vá em spectators.cpp adicione a função void:   void Spectators::sendLook(ProtocolGame* client, const Position& pos, uint16_t spriteId, int16_t stackpos) {

Posted Images

Postado
  • Autor
  Em 19/04/2022 em 00:19, Farathor disse:


protocolgame.cpp: In member function ‘void ProtocolGame::spectate(const string&, const string&)’:
protocolgame.cpp:141:27: error: ‘stoi’ is not a member of ‘std’
  uint32_t total = ctime - std::stoi(value);
                           ^
protocolgame.cpp:172:35: error: request for member ‘addProtocolToAutosend’ in ‘OutputMessagePool::getInstance()’, which is of pointer type ‘OutputMessagePool*’ (maybe you meant to use ‘->’ ?)
  OutputMessagePool::getInstance().addProtocolToAutosend(shared_from_this());
                                   ^
protocolgame.cpp:172:74: error: ‘shared_from_this’ was not declared in this scope
  OutputMessagePool::getInstance().addProtocolToAutosend(shared_from_this());
                                                                          ^
protocolgame.cpp: In member function ‘bool ProtocolGame::spectatePlayer(const string&, const string&)’:
protocolgame.cpp:206:24: error: ‘class Spectators’ has no member named ‘resetOwner’
    player_old->client->resetOwner();
                        ^
protocolgame.cpp:216:2: error: ‘knownCreatureSet’ was not declared in this scope
  knownCreatureSet.clear();
  ^
protocolgame.cpp:229:27: error: ‘stoi’ is not a member of ‘std’
  uint32_t total = ctime - std::stoi(value);
                           ^
protocolgame.cpp:258:35: error: request for member ‘addProtocolToAutosend’ in ‘OutputMessagePool::getInstance()’, which is of pointer type ‘OutputMessagePool*’ (maybe you meant to use ‘->’ ?)
  OutputMessagePool::getInstance().addProtocolToAutosend(shared_from_this());
                                   ^
protocolgame.cpp:258:74: error: ‘shared_from_this’ was not declared in this scope
  OutputMessagePool::getInstance().addProtocolToAutosend(shared_from_this());
                                                                          ^
protocolgame.cpp: In member function ‘void ProtocolGame::returnPlayer()’:
protocolgame.cpp:273:35: error: ‘getThis’ was not declared in this scope
  player->client->setOwner(getThis());
                                   ^
protocolgame.cpp:276:2: error: ‘knownCreatureSet’ was not declared in this scope
  knownCreatureSet.clear();
  ^
protocolgame.cpp: In member function ‘void ProtocolGame::spectatorTurn(uint8_t)’:
protocolgame.cpp:325:30: warning: comparison is always false due to limited range of data type [-Wtype-limits]
  if (index == 0 && direction == -1) {
                              ^
protocolgame.cpp:349:2: error: ‘knownCreatureSet’ was not declared in this scope
  knownCreatureSet.clear();
  ^
 

 

usa a distro que eu publiquei aqui, 

ela já tá com essa feature, e também há novidades nela, qualquer coisa só adapta as coisas que você tem aí !

aka aka

 

monki-flip-monkey.gif

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo