why don't you work with bits

it will be much easier.
here's an example
Code:
============>
menu format will be like.
============>
SKINS menu
1. Default Skin ( Selected )
2. GSG9 Killer ( Bought )
3. FBI Agent Killer ( Price 3000$ )
4. SAS Killer ( Bought )
===========>
enum (*=2)
{
GSG9_KILLER = 1, // (1<<0)
FBI_KILLER, // (1<<1)
SAS_KILLER // (1<<2)
}
// meaning that user will have access to GSG9_KILLER skin and the SAS_KILLEr
g_PlayerSkins[ id ] = GSG9_KILLER|SAS_KILLER;
Save(id)
{
new szData[32]; formatex(szData, charsmax(szData), "%d %d", g_iPlayerSelectedSkin[id], g_PlayerSkins[id]);
nvault_set(nVault, g_szAuthID[ id ], szData)
}
Retrieve(id)
{
new szData[32], szSelection[4];
nvault_get(nVault, g_szAuthID[ id ], szData, charsmax(szData))
strbreak(szData, szSelection, charsmax(szSelection), szData, charsmax(szData));
g_iPlayerSelectedSkin[id] = str_to_num(szSelection);
g_PlayerSkins[id] = str_to_num(szData);
}
Edit: Altho you will be limited for 32 skins which i think it will be more than enough
__________________