28.02.2019, 09:11
Quote:
You need to loop through all the online players if you want to save their data one by one. But saving a large amount of data at once is not really efficient in my opinion.
|
If you want it still with one query and to affect every online player, add a boolean value that changes when a player logs in successfully, and put it back to false when the player disconnects, then obviously just check whether the player's column is set to true or not.