Timers and save player data? How much second ? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Timers and save player data? How much second ? (
/showthread.php?tid=657252)
Timers and save player data? How much second ? -
R3SpaWn0 - 03.08.2018
Hi again xDD i really want to learn this shit..
i want to save data of players with timmers but i dont know how much time is good to dont cpu load?
1 minute? 5second? 1 ? (is MySQL, maybe tquery?)
ah..and, i call the timer on GameModeInit or OnPlayerConnect?
and....
Can i set a timer for playerid for save data?, becouse i think if save all players data at the same time cause lag, really? is better to save data playerid, individual timer? thank you all teachers !! where to pay to subscribe !!! xd
Re: Timers and save player data? How much second ? -
Banditul18 - 03.08.2018
Save player data when that data changes. No need for timers for that. Also mysql_tquery
Re: Timers and save player data? How much second ? -
R3SpaWn0 - 03.08.2018
Quote:
Originally Posted by Banditul18
Save player data when that data changes. No need for timers for that. Also mysql_tquery
|
Yes but, if i am in car just driving, i want to save pos and fuel, etc, or its useless cpu load? hmm, i made me think a little,i go save player data everytime he get $1 xDDD
Re: Timers and save player data? How much second ? -
Banditul18 - 03.08.2018
I dont see why you want to save car position so often, save it need to be like in /park command or when player leave the car(if you really want to save the car pos so often).
Also fuel you can save it when it changes and i doubt you dont have a function that increase/decrease the fuel