whitevo
Feeling good, thats what I do.
Can i use network message to close a channel 10?
I tried something but client keeps crashing
working solution:
I tried something but client keeps crashing
working solution:
Code:
local msg = NetworkMessage()
msg:addByte(0xB3)
msg:addU16(0x0A) -- channelID in ASCII
msg:sendToPlayer(player)
msg:delete()
Code:
void ProtocolGame::parseCloseChannel(NetworkMessage& msg)
{
uint16_t channelId = msg.get<uint16_t>();
addGameTask(&Game::playerCloseChannel, player->getID(), channelId);
Last edited: