I noticed in the XP mod tutorial by Flyeni6, it only saves their level.
PHP Code:
public SaveData(id)
{
// get the players steam id. We need this because we are saving by steam id
new AuthID[35] get_user_authid(id,AuthID,34)
new vaultkey[64],vaultdata[256]
// format wat is going to be in the animal mod vault file
format(vaultkey,63,"%s-Mod",AuthID)
format(vaultdata,255,"%i#%i#",PlayerXP[id],PlayerLevel[id])
// save the data
nvault_set(g_vault,vaultkey,vaultdata)
return PLUGIN_CONTINUE
}
So no matter what class they are, they're level will always be the same. How can I save seperate levels for each class?
__________________