I avoided using commas, whitespace and ASCII encoding as that would require parse() and an edit of the save/load function every time you add or remove a weapon. It would also increase the filesize.
You could do this:
Code:
gWeapons[id][GoldenDeagle] = GoldenDeagle + 1;
Which would save the index in binary form. But I don't really understand why. The Vault is supposed to just keep in the background. This is one of the most efficient way to do it being almost no native calls at all.
If you could explain what you mean and why you want it I will try helping you.
__________________