Reading Vault After Mapchange
I have the following code:
Code:
If, however, I change the map (using map, changelevel, or amx_map) and call login() on a player, if(vaultdata_exists(key_kills)) is presumably evaluated as false, because the data in the vault (which, up until login() is called, still exists) is overtwritten (setting kills back to 0). I've exausted my brain and I still can't figure out why this is happening - any clues? [edit] Apparently ftp was being stupid, and the vault is actually being rebuilt on mapchange.. Isn't the vault supposed to stay between maps? [edit2] no, it's being rebuilt when login() is called, but only after a mapchange... wtf!? |
I tried TS's custom vault, but that won't even compile....
Code:
customvault.inc(26) : error 027: invalid character constantI've been working on this all night, and I'm no closer to finding anything out than I was when I started.. I'm soooo pissed off right now...any help would be reeeally appreciated... |
strtok is in the string.inc. Anyway, the custom vault isn't The Specialist's. It was originally made by me and then remade by Suzuka. As for your problem, a few users have had problems with vault clearing itself or resetting data in the past. Maybe the vault has issues?
|
Hmm...
If that's the case, then maybe someone should make a post in the "bugs" forum.. :S Quote:
You mean Twilight Suzuka? |
rofl
I see TS and associate it with The Specialists. |
http://forums.alliedmods.net/showthr...?p=86866#90422
Anyways, thanks, Avalanche, it works now ^_^ I'll probably end up posting the plugin, although I don't know why anyone other than the crazy people on my server would want it... |
Please do not use my code from custom vault.
|
1 Attachment(s)
Yes, please use my cvault_array.inc
btw, the only problem with that cvault was the fact it converted the tab into three spaces, in strtok. |
| All times are GMT -4. The time now is 19:20. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.