Raised This Month: $ Target: $400
 0% 

Scripting Question(MySql)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
aron9forever
Veteran Member
Join Date: Feb 2013
Location: Rromania
Old 05-18-2014 , 12:08   Re: Scripting Question(MySql)
Reply With Quote #5

Quote:
Originally Posted by oxygen935 View Post
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") }
aron9forever is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:43.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode