07.02.2015, 07:03
Both. I use files for logs and server data and SQL for saving dynamic data, eg users, vehicles and bans.
Why? Logs are good for just recording data that probably will never need to be seen again, like the chatlog. SQL is good for storing dynamic data that needs to be read from and updated regularly, hence its use for userdata and other dynamic systems. Also SQL can be used on your website as well, for example players could log in to your website using their in game username, because the website would have access to the same database as the game server.
Why? Logs are good for just recording data that probably will never need to be seen again, like the chatlog. SQL is good for storing dynamic data that needs to be read from and updated regularly, hence its use for userdata and other dynamic systems. Also SQL can be used on your website as well, for example players could log in to your website using their in game username, because the website would have access to the same database as the game server.