Quote:
Originally Posted by Exolent[jNr]
Not sure, though you could reduce this:
PHP Code:
iAchievementProgress = aData[ Achievement_Progress ];
iAchievementProgress[ id ] = iPlayerProgress;
aData[ Achievement_Progress ] = iAchievementProgress;
to this:
PHP Code:
aData[ Achievement_Progress ][ id ] = iPlayerProgress;
|
Hmm just realized I've been doing that in the whole plugin. Thanks for the optimization
I have no idea why it's automatically starting at 16. I stop the server, delete the vault file, and then restart it, and when I first create an achievement, I logged it to be equal to 0, but then when I join the server, it gets set to 16.
__________________