27.05.2012, 02:09
I've never tried it that way, but if it works for you then by all means use it.
I'd rather use foreach and call the saving function that way, or check if the player is connected in the loop, otherwise you'll most likely get blank-named .ini files.
EDIT:
For safety reasons you could even just save all the playerdata, and then set a delaying timer (1-2 seconds) to officially restart the server.
I'd rather use foreach and call the saving function that way, or check if the player is connected in the loop, otherwise you'll most likely get blank-named .ini files.
EDIT:
For safety reasons you could even just save all the playerdata, and then set a delaying timer (1-2 seconds) to officially restart the server.

