Player Variables help!!
#1

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.
Reply
#2

Hello,

What scripting system do you use?
Reply
#3

Quote:
Originally Posted by Daniel_Davis
Посмотреть сообщение
Hello,

What scripting system do you use?
ZCMD and dini
Reply
#4

You should use y_ini
Reply
#5

Quote:
Originally Posted by Blunt
Посмотреть сообщение
You should use y_ini
Ehh. I work better with dini

And, this isnt solving my problem.
Reply
#6

Any help?
Reply
#7

Have you tried creating a variable which holds the player data?
Reply
#8

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.
Reply
#9

It gotta be under "OnPlayerDisconnect" then...
Reply
#10

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)