Quote:
Originally Posted by oxygen935
So, making a task every minute to save stats would be a good idea?
|
yeah, I use the same method
keep both saving on disconnection and add a timer to save stats
Code:
public client_putinserver(id)
{
Load_MySql(id)
set_task(60.0, "Save", id+TASK_SAVE_INFO, _, _, "b")
}
//this is good if you want to save every minute for each player beginning from when they join
//if you just want to save all the players on the server
public plugin_init()
{
set_task(60.0, "Save", _, _, _, "b")
}