Timers and save player data? How much second ?
#1

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
Reply
#2

Save player data when that data changes. No need for timers for that. Also mysql_tquery
Reply
#3

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
Reply
#4

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)