Posts: 96
Threads: 10
Joined: Aug 2017
Reputation:
0
My script have a fucntion to save player info and i call that function under OnPlayDisconnect but some of the stuff aren't saving. My question is where should i put it to effectively save the player info. I though about making a timer to save it every 5 mins but i want to know if there is a better way to do this.
Posts: 1,752
Threads: 338
Joined: Jul 2012
Reputation:
0
Can you post your OnPlayDisconnect code?
Posts: 96
Threads: 10
Joined: Aug 2017
Reputation:
0
Not at the moment, there is noylthing wrong with the code i just want to know where in my script would be the best place to call the function to save the player info
Posts: 1,752
Threads: 338
Joined: Jul 2012
Reputation:
0
OnPlayerDisconnect [When the Player leaves]
Timer [Keep up with data and save it]
Posts: 96
Threads: 10
Joined: Aug 2017
Reputation:
0
Would you recommand making a timer to save it every 5mins?