12-24-2012, 23:47
Hash tables are stored in memory, once plugin is closed, it cleans up all memory used by that plugin. Therefore, restarting the server will close it, clean up memory used by it, then when restarted it will allocate new memory space for a new hash table.
As pointed above a SQL database is the way to go when it comes to tracking players, points, chat, kills, connections, etc. This way its never deleted upon server restarts, the only bad thing you have to worry about is if the database becomes corrupted, hence why you dump it every day or so, then upload it off site or to another drive.
Someone said about writing files and reading them which would work as well but a database offers a much more organized view of the data if done correctly. Although you have to be careful with SQL databases and make sure you escape " ' " (apostrophes) correctly or someone can SQL inject your database and cause some havoc @_@
As pointed above a SQL database is the way to go when it comes to tracking players, points, chat, kills, connections, etc. This way its never deleted upon server restarts, the only bad thing you have to worry about is if the database becomes corrupted, hence why you dump it every day or so, then upload it off site or to another drive.
Someone said about writing files and reading them which would work as well but a database offers a much more organized view of the data if done correctly. Although you have to be careful with SQL databases and make sure you escape " ' " (apostrophes) correctly or someone can SQL inject your database and cause some havoc @_@