Hi
So I have this problem that has been bugging me these past few days, i've searched a fair bit, but to no avail.
When I do this:
//sockets and packets already declared
sf::Vector2i playerPos;
socket.receive(packet);
if(packet >> playerPos.x >> playerPos.y)
{
player.setPosition(playerPos);
}
I'll get an overload error saying that the compiler doesn't know how to cast int to char*, I've heard somewhat that I need to make it explicit(I don't know how/where).
Any help would be appreciated, if you need more code, do say so