Player Variables help!! -
Joshb93 - 22.03.2012
Ok, so heres my issue. When a player joins, they go through the process of registering, and their stats save.
if they leave and come back, their stats are still saved.
But, if you restart the server, all their stats are set back to zero when they connect.
Anyhelp? If you need to see a part of the script, let me know.
Re: Player Variables help!! -
BigD - 22.03.2012
Hello,
What scripting system do you use?
Re: Player Variables help!! -
Joshb93 - 22.03.2012
Quote:
Originally Posted by Daniel_Davis
Hello,
What scripting system do you use?
|
ZCMD and dini
Re: Player Variables help!! -
Blunt - 22.03.2012
You should use y_ini
Re: Player Variables help!! -
Joshb93 - 22.03.2012
Quote:
Originally Posted by Blunt
You should use y_ini
|
Ehh. I work better with dini
And, this isnt solving my problem.
Re: Player Variables help!! -
Joshb93 - 22.03.2012
Any help?
Re: Player Variables help!! -
tpolis - 22.03.2012
Have you tried creating a variable which holds the player data?
Re: Player Variables help!! -
Joshb93 - 22.03.2012
Quote:
Originally Posted by tpolis
Have you tried creating a variable which holds the player data?
|
Yes, ive tried that. It works until you restart the server, then after you restart the server, and they connect, it sets all back to 0, or default.
Re: Player Variables help!! -
Twisted_Insane - 22.03.2012
It gotta be under "OnPlayerDisconnect" then...
Re: Player Variables help!! -
Skribblez - 22.03.2012
first of, how do you restart your server? from the samp-server.exe itself or do you have a command that restarts your server?
second, are you sure that you have a code that loads the accounts under "OnGameModeInit"? make sure that you save all accounts under "OnPlayerDisconnect", that should work.