SA-MP Forums Archive
accounts do not load after closing samp-server.exe - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: accounts do not load after closing samp-server.exe (/showthread.php?tid=69439)



accounts do not load after closing samp-server.exe - CJ101 - 18.03.2009

http://pastebin.com/f62509415

If the server crashes, or i close samp-server, the next time someone goes in, their data is not loaded.
help?


Re: accounts do not load after closing samp-server.exe - LarzI - 18.03.2009

if (account)

try changing that to

if (!account)


Re: accounts do not load after closing samp-server.exe - MenaceX^ - 18.03.2009

Load them in OnGameModeExit.


Re: accounts do not load after closing samp-server.exe - CJ101 - 18.03.2009

Quote:
Originally Posted by MenaceX^
Load them in OnGameModeExit.
[quote=MenaceX^ ]

u mead Enter? it wouldnt work on exit..


Re: accounts do not load after closing samp-server.exe - LarzI - 18.03.2009

No on exit...


Re: accounts do not load after closing samp-server.exe - MenaceX^ - 18.03.2009

Why are you quoting me while I didn't say it? Use regular reply instead of double quoting me.

It should work in OnGameModeExit.
Show me your OnGameModeExit public.


Re: accounts do not load after closing samp-server.exe - notec100 - 18.03.2009

OnGameModeExit is correct I had issues with a few stats not saving due to server crashes etc, and once I added the info to OnGameModeExit it has been fine ever since. So yes it does work on OnGameModeExit.


Re: accounts do not load after closing samp-server.exe - MenaceX^ - 18.03.2009

I know it does work when using OnGameModeExit, I don't understand why he says it doesn't.


Re: accounts do not load after closing samp-server.exe - CJ101 - 19.03.2009

fixed, have same problem


http://pastebin.com/m7240b3fb