I need to do something that I think is called an Object Array. For example: A player accesses the server, this server will allocate this player as an object of such a group, so will have many objects of the same class.
Is there a way to make using one line for each player, but would have to be a source editing and compilation in real time and without stopping the server, which is impossible, but to demonstrate:
Player p0000001 ("Nickname", 150);
Player p0000002 ("OtherNickname", 17);
Player pNNNNNNN ("Nick", 00);
I wanted something like:
Player players[0].nickname = "Nickname";
Player players[0].level = 150;
Player players[1].nickname = "OtherNickname";
Player players[1].level = 17;
It's possible this? I just need a demo for me to adapt. Thanks, Bruno Alano.