Server - 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: Server (
/showthread.php?tid=514853)
Server -
dorperez - 23.05.2014
Hey guys,
I am using y_ini but I have a problem,when I close samp-server.exe when I am login the stats won't save..However,when I am using /q and exit the server it do save..
How can I fix it ?
Re: Server -
SilentSoul - 23.05.2014
You won't get help because we can't determine your problem causing this. Would you mind if you show us your codes?
Re: Server -
dorperez - 23.05.2014
Quote:
Originally Posted by SilentSoul
You won't get help because we can't determine your problem causing this. Would you mind if you show us your codes?
|
sure,what codes do you need ?
Every time I exit samp-server.exe its happen.
Re: Server -
SilentSoul - 23.05.2014
Show me your login/register system codes. (onplayerconnect,ondialogresponse, etc..)
Re: Server -
dorperez - 23.05.2014
Quote:
Originally Posted by SilentSoul
Show me your login/register system codes. (onplayerconnect,ondialogresponse, etc..)
|
All of the scripts ??
I know that OnGameModeExit is working with samp-server.exe but I don't know how to fix it.
Re: Server -
dorperez - 24.05.2014
UP...
Re: Server -
NaClchemistryK - 24.05.2014
nvm..
Re: Server -
ball - 24.05.2014
Probably the saving player data callback isn't called when samp-server.exe closed, you have to loop all online players in OnGameModeExit and there save their data.
Re: Server -
Youssef214 - 24.05.2014
i have nearly the same problem,when i close the samp-server.exe and re-open it,my stats doesn't load.
Re: Server -
Shaneisace - 24.05.2014
Quote:
Originally Posted by dorperez
Hey guys,
I am using y_ini but I have a problem,when I close samp-server.exe when I am login the stats won't save..However,when I am using /q and exit the server it do save..
How can I fix it ?
|
I presume when mean you close the exe it doesn't save?
If that's the case it wont save as your just killing the server so it can't process anything etc.. if you need to do a restart you need to kick all the players before closing the server console to avoid losing data.