SA-MP Forums Archive
Player stats not saving on host - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Player stats not saving on host (/showthread.php?tid=576501)



Player stats not saving on host - flamur2012 - 04.06.2015

I recently hosted my server on smartbytes and everything was fine until i noticed that stats weren't saving at all....:S localhost everything is good and everything saves but when it came to the host nothing was happening it just created the user file saved the password and nothing else... im running the server on zombie apocalypse. Any help is more than welcomed, thank you.


Re: Player stats not saving on host - Phaze - 04.06.2015

Check the logs, it will tell you why files aren't saving. Like MYSQL and etc.


Re: Player stats not saving on host - flamur2012 - 04.06.2015

Nothing shows on the logs on why the stats are not saving im rly confused... Localhost everything works like a charm but the one that is hosted on smartbytes won't save the stats? Is it something releated with the host? Im pretty sure there's nothing wrong with the script/gamemode


Re: Player stats not saving on host - PowerPC603 - 04.06.2015

Put some printf statements between your code (where each line is saved into the file) and debug-print your saving system that way.
You may also print the actual line that should be saved into the file to your server console (and it automatically appears in the log as well), then you may be able to find the problem.


Re: Player stats not saving on host - flamur2012 - 05.06.2015

I made some prints and everything shows that it works but still nothing really changed... Could you please be more detailed on what i should do maybe im doing wrong something. Im a beginner at scripting...


Re: Player stats not saving on host - ColonelBurton - 05.06.2015

what admin system you are using?


Re: Player stats not saving on host - flamur2012 - 05.06.2015

Not using any admin system only using a gamemode maybe u heard of it. Zombie Apocalypse


Re: Player stats not saving on host - SimplyFragHosting - 06.06.2015

Hello,

Have you tried checking the mysql connection details to ensure they are correct. Also have you check that the database has been uploaded correctly (same table structure as the gm).

Finally try swapping out the plugin version to see if its that that caused it since ur host transition. ALWAYS USE MYSQL_STATIC.SO / DLL

you can also try running from putty: chmod 777 samp-server


Re: Player stats not saving on host - hossa - 06.06.2015

Chmod your samp-server to 777, Had this problem before.