I was originally asked to modify a autolevel lua script seen the same script in slight different forms around the internet. Thing is both in the original scrip and my modified one i get the same problem:
return et.gentity_get(pID, "ps.persistant", 0)
returns 0 when the players XP is not 0.
Is ps.persistant the right fieldname for XP? I bypassed this section of code and everything else in my script works last nail to be done before implementing it.