FVAULT nullifies saved strings in txt problem
[SOLVED]
Hello, I'm using an identical plugin to this one but instead of using parse i use str_to_num and instead of formatex, num_to_str. The plugin which stores only 1 variable in a txt and uses str to num/num to str hasn't had a problem in 10 years. Using parse and formatex (I'm not really sure this is where the problem comes from) Taken from my txt: "4h4" "0 1 1" 1591709213 The sequence becomes "0 0 0" but not at all times mainly when one uses 'retry' or map changes. Again, a person may retry 10 times and still have no problem. Maps may change 5 times and still no problem. But I'm more prone to believe that something happens on map change. The default sequence for a newcomer is "1 1 0". Even if they dont touch anything they would get their sequence nullified in some inexplicable occasion. Tried with 3 people in server, spamming map change and people retrying, changing their sequence, not changing it, you name it. Most times it does save the sequence on loading data but sometimes it doesn't.. What gives??? Code:
#include <amxmodx> |
Re: FVAULT nullifies saved strings in txt problem
Load the data in client_connect() without any tasks.
|
Re: FVAULT nullifies saved strings in txt problem
I tried but it doesn't seem to be the case :cry:
|
Re: FVAULT nullifies saved strings in txt problem
Try logging (amx_log or something) after fvault_get_data and fvault_set_data and check the log files after a couple days to see when exactly the data becomes "0 0 0" then you can proceed from there
|
Re: FVAULT nullifies saved strings in txt problem
Quote:
Problem was in client_disconnected() which calls a double save sometimes, and the second save has "0 0 0" sequence because it's getting in-game data for a client while he isn't in server so it probably returns 0. Also I would suspect client_disconnected() might be executed more than once to a player when they have to download a server resource on map change even if they're not a newcomer thus causing the problem there too. |
Re: FVAULT nullifies saved strings in txt problem
Which AMXX version are you using?
|
Re: FVAULT nullifies saved strings in txt problem
1.10.5388
|
All times are GMT -4. The time now is 17:48. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.