For entities you can use enet_clent_create()/enet_svent_create(). It generates a global pointer that can be used on all participants. For more details, read the manual section regarding entity functions.

Why don't you use enet_set_playername() for managing the player name?

To say it in general: All pointers that are generated by Lite-C are invalid on a different participant!


ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)!
get free version