Posts: 578
Threads: 45
Joined: Aug 2010
Reputation:
0
Did you created a new folder where stats will be saved ?
Posts: 257
Threads: 29
Joined: Jul 2010
Reputation:
0
No cuz i save them in scriptfiles(not any other specifid folder)But that's not problem.
Posts: 1,494
Threads: 120
Joined: Dec 2009
Reputation:
0
There is no file path for the player to save to.
Posts: 257
Threads: 29
Joined: Jul 2010
Reputation:
0
I dont understand,players register and in scriptfiles create account from player...but stats dont write in
Posts: 195
Threads: 16
Joined: Aug 2009
Reputation:
0
Im not familiar to that INC your using, but it seems right to me.
My theory is that when a player types /q the player stats get automatically deleted as a nice feature of GetPVar.
I think that because that the server will first have to call the OnPlayerDisconnect callback and then get the information from the stock, the stats gets deleted before they get saved in the file. This can also be seen in alot of cases when you disconnect that the IP will be shown as 255.255.255.255. Try to move the saving code to the callback itself, or update the file whenever the information changes (like he dies or gets a higher or lower ammount of money)
Posts: 257
Threads: 29
Joined: Jul 2010
Reputation:
0
Im not pro scripter,but im sure on register i need add something to create account(with kills,deaths,money,color,level) in "users" folder
Posts: 785
Threads: 22
Joined: Jun 2007
Reputation:
0
You maybe forgot to SetPVarInt (LoggedIn) when the player logs in, since we cannot see your LoginPlayer function.