Please extend my server and otx I don't know if otx2 or another hahaha, but there where the message Outputmessage should be NetworkMessage and if I change the error when compiling and something else and where is the addbytes it cannot change if not tbm the error when compiling someone to help please
void ProtocolGame :: AddMagicEffect (OutputMessage_ptr msg, const Position & pos, uint16_t type)
{
msg-> addByte (0x83);
msg-> addPosition (pos);
msg-> addByte (digite + 1);
}
void ProtocolGame :: AddDistanceShoot (OutputMessage_ptr msg, const Position & from, const Position & to,
uint16_t type)
{
msg-> addByte (0x85);
msg-> addPosition (de);
msg-> addPosition (to);
msg-> addByte (digite + 1);
}