Effectively save player info MySQL - 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: Effectively save player info MySQL (
/showthread.php?tid=655989)
Effectively save player info MySQL -
Akeem - 04.07.2018
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.
Re: Effectively save player info MySQL -
DerickClark - 04.07.2018
use print as debug.
Re: Effectively save player info MySQL -
Akeem - 04.07.2018
I don't understand
Re: Effectively save player info MySQL -
DerickClark - 04.07.2018
Can you post your OnPlayDisconnect code?
Re: Effectively save player info MySQL -
Akeem - 04.07.2018
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
Re: Effectively save player info MySQL -
DerickClark - 04.07.2018
OnPlayerDisconnect [When the Player leaves]
Timer [Keep up with data and save it]
Re: Effectively save player info MySQL -
Akeem - 04.07.2018
Would you recommand making a timer to save it every 5mins?
Re: Effectively save player info MySQL -
DerickClark - 04.07.2018
Quote:
Originally Posted by Akeem
Would you recommand making a timer to save it every 5mins?
|
no not 5 mins cause it will spam.