Hey guys,
I have a problem, well, not that something doesnt work, but only sometimes work, and then gets fixed.
I store Level and Points on STEAM ID of players. I save it by fvault, when the key name is their STEAM ID and the data is their points / level (seperate vault for each thing.... points and level).
Now, sometimes when players log in, lets say they are Level 10, so sometimes they log in and it says they are level 1 and with no points, means it didnt load their things. BUT, after map change, they get their stats back.
'retry' doesnt fix the problem, only map change, then it happens to others, or to none at all.
My question is, why the hell would it randomally load / not load their stats? From what I know fvault doesn't have a mood.
Here is my function, can something go wrong?
PHP Code:
LoadLvl(plr)
{
new authid[35];
get_user_authid(plr, authid, sizeof(authid) - 1);
new data[16];
if( fvault_get_data(g_vault_level, authid, data, sizeof(data) - 1) )
g_lvl[plr] = str_to_num(data);
else
g_lvl[plr] = 0;
}
__________________