nvault not setting or getting properly
For some reason, no matter what I try, I cannot get the nvault to store/recall the data properly. I dont know what it is after three code re-writes, thus I am asking for help.
I know theres a lot of room for optimization, however for now I just want to get it to work properly.. The problem occurs when I say /credits after a disconnect. When I reconnect, the credits are reset to zero, thus making it kinda obsolete. Im pretty sure its either: Problem with the nvault_get Problem with the nvault_set Mis-used variable to the nvault Help would be greatly appreciated. Update: I just found the nvault viewer and apparently its not writing or getting. Making me so confused. Code:
|
Re: nvault not setting or getting properly
Tried different coding attempts that caused an overall error, so here is another slightly modified code and a bump.
What it seems to be doing is writing it locally, but not to the nvault at all. I saw once that my steamid was STEAM_ID_PENDING and it still worked, meaning that the connection was off. Again, any help or suggestions would be appreciated. Code:
|
Re: nvault not setting or getting properly
it's most likely because you're indexing the arrays in nvault_get and nvault_set
Code:
nvault_get(nvault, authid[id], vault_set[id], 34)Code:
nvault_get(nvault, authid, vault_set, 34) |
Re: nvault not setting or getting properly
Code:
Are your "Credits" Your play time? Because that's what it looks like. But anyways. Here it opens/closes the Vault on Map start/end. And your play time is saved at when they disconnect. And the credits is your current playtime, plus the old one. (That was saved in the Vault) |
Re: nvault not setting or getting properly
Thanks much for the help. I was able to alter the code so that it actually converts the time played on the server to actual credits, as well as alter the nvault every time the user checks.
[FIXED/FINISHED] |
| All times are GMT -4. The time now is 03:18. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.