According to your notation, iUserSavedPassword[id] is an integer value.
So you have to use %i or %d when formatting.
PHP Code:
formatex(vaultkey, 63, "%d", iUserSavedPassword[id])
Also you don't have to format the vaultdata in the LoadData() function.
And the returns aren't needed, but they shouldn't cause any problems.
__________________