Jpstafe
Well-Known Member
- Joined
- Aug 8, 2011
- Messages
- 507
- Reaction score
- 68
Have updated my server to the latest tfs commits, now i want to add ping for otcv8 but it giving me error, i think i need to adapt part of the code
can somebody help me?
Lua:
void ProtocolGame::parseNewPing(NetworkMessage& msg)
{
uint32_t pingId = msg.get<uint32_t>();
uint16_t localPing = msg.get<uint16_t>();
uint16_t fps = msg.get<uint16_t>();
addGameTask(&Game::playerReceiveNewPing, player->getID(), localPing, fps);
g_dispatcher.addTask(createTask(std::bind(&ProtocolGame::sendNewPing, getThis(), pingId)));
}
Code:
quests.cpp
1>C:\Users\jpstafe\Documents\GitHub\pro-ot\src\protocolgame.cpp(2423,74): error C2672: 'ProtocolGame::addGameTask': no matching overloaded function found
1>C:\Users\jpstafe\Documents\GitHub\pro-ot\src\protocolgame.h(338,8): message : could be 'void ProtocolGame::addGameTask(Callable &&)' (compiling source file ..\src\protocolgame.cpp)
1>C:\Users\jpstafe\Documents\GitHub\pro-ot\src\protocolgame.cpp(2423,2): message : 'void ProtocolGame::addGameTask(Callable &&)': expects 1 arguments - 4 provided
1>C:\Users\jpstafe\Documents\GitHub\pro-ot\src\protocolgame.h(338): message : see declaration of 'ProtocolGame::addGameTask'
1>raids.cpp
1>rsa.cpp
1>scheduler.cpp