I have looked for ways of doing it but have not found any solution. I need to send a player's coordinates in a game to the server. I got the idea of making a string and splitting it up into pieces of data when recieved but there must be a simpler way, I thought.
The ENet function to create a packet takes in a const void *, but I can't get a reference to a struct of data to work, and to me that does not make sense since the reference points to data on one machine, not every client's. Any ideas?