EOSERV Forum > Programming > Cannot convert PacketBuilder to SOCKET aka unsigned int
Topic is locked.
Page: << 1 >>
Cannot convert PacketBuilder to SOCKET aka unsigned int
Author Message
Post #195659 Cannot convert PacketBuilder to SOCKET aka unsigned int

Im trying to add trade to my bot and im having this error for multiple voids,


void TradeRequest(short pid)

{

    if(eobot::CharacterTrading == true) return;

    PacketBuilder packet(PACKET_TRADE, PACKET_REQUEST);

    packet.AddChar(138); // hence the question

    packet.AddShort(pid);

    send(packet);

}

 that is one of the void's that the error is pointing to, could someone explain the error or try and help me rectify it? Thanks in advance.

10 years, 28 weeks ago
Post #195660 Re: Cannot convert PacketBuilder to SOCKET aka unsigned int

Why would you put the code in a different file than eobot.cpp? I'm guessing your missing headers in the file you have these codes in! Maybe try recreating them in eobot.cpp and X out your other codes.

10 years, 28 weeks ago
Post #195661 Re: Cannot convert PacketBuilder to SOCKET aka unsigned int

Yet again Thanks Insom, Ive moved the section to Eobot, Did some fiddling around with the handlers and the source seems to compile, just gotta wait for EO to come back up to properly test it.

10 years, 27 weeks ago
Page: << 1 >>
Topic is locked.
EOSERV Forum > Programming > Cannot convert PacketBuilder to SOCKET aka unsigned int