fvault lost data problem
Example: I have 50 lives and my password is "red". Player B has 15 lives and his password is "green".
I don't know why, but sometimes when player B enters the server he will have 50 lives and his password will be "red". But the SETINFO_PASSWORD is "green" and therefore he can't login in his account. In the FVAULT the information changed so he lost all his data. PHP Code:
|
Re: fvault lost data problem
You don't have any specifications to load and save functions that determine who has what and how much. Like...
Save data with Name/SteamID/IP | password and life. That's why everyone that will join your server will have the first line of saved data. meaning, everyone will have "red" as the password and 50 life. |
Re: fvault lost data problem
Quote:
Also I think the key is the name. |
Re: fvault lost data problem
Probably will not solve the prob, but you missing here charsmax:
Code:
parse( SZ_Data, VAULT_Password, 190, lifes) |
Re: fvault lost data problem
Quote:
|
Re: fvault lost data problem
Okay I got the problem, but I dont know how to fix it:
When a player leave, the next player who join have their account stats. (It dosnt happens everytime, only sometimes) |
Re: fvault lost data problem
You should reset g_lifes(for example set g_lifes[id] = 0 or another appropriate value) in a place like client_connect.
|
Re: fvault lost data problem
Quote:
If everything works okay I'll close the thread. |
| All times are GMT -4. The time now is 02:38. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.