with nvault is a lot of problems (such as a nvault is crashing and not loadning at map change.. and other.)
in your case you have called gVaultClose variable in plugin_end function but previosly you don't defined it.
you need to remove gVaultClose variable and use gVault variable instead.
as for jumps, you know that jumps has been calculated only for T?
and also you use threeDimension array OldOrigins, but it's is not needed in this codes.
new vOldOrigin[33][3];
PHP Code:
static Distance;
get_user_origin( id, vOrigin[ id ] );
Distance = get_distance( vOldOrigin[id], vOrigin[id] );
if( Distance >= 50 )
{
iAchLevel[id][JUMP]++
client_print(id,print_chat,"you have jumped bhop %d",iAchLevel[id][JUMP]);
if(iAchLevel[id][JUMP] == 2500)
{
TotalAchievements[read_data(1)]++
ColorChat(0, GREEN, "[Achievements]^1 %s^3 successfully unlocked the achievement^4 Bunnyhopper [1000 Cash Added]", szName)
emit_sound(read_data(1), CHAN_STATIC, szAchievementSound, 1.0, ATTN_NORM, 0, PITCH_NORM)
cm_set_user_cash(id, 1000);
}
else if(iAchLevel[id][JUMP] == 5000)
{
TotalAchievements[read_data(1)]++
ColorChat(0, GREEN, "[Achievements]^1 %s^3 successfully unlocked the achievement^4 Pro Bunnyhopper [2000 Cash Added]", szName)
emit_sound(read_data(1), CHAN_STATIC, szAchievementSound, 1.0, ATTN_NORM, 0, PITCH_NORM)
cm_set_user_cash(id, 2000);
}
else if(iAchLevel[id][JUMP] == 10000)
{
TotalAchievements[read_data(1)]++
ColorChat(0, GREEN, "[Achievements]^1 %s^3 successfully unlocked the achievement^4 Master Bunnyhopper [4000 Cash Added]", szName)
emit_sound(read_data(1), CHAN_STATIC, szAchievementSound, 1.0, ATTN_NORM, 0, PITCH_NORM)
cm_set_user_cash(id, 4000);
}
vOldOrigin[ id ] = vOrigin[ id ];
}
as for plugin_end .. i think you also need to put loop for saving all players data. (1..players save(id));
and my suggestion for you try to useing SQL, SQLite.. cause it's is better with saving, and in future to integrating with WEB...
in my case server is working only when nvault file doesnt exist(I remove it and start the server). plugin creates .vault and .journal files, but after map change .journal file doesn't exist and server is crashing(probably because journal file doens't exist).
P.S. also I tried with CHMOD 777 (full permissions).
as for you if nvault is working correctly maybe try to set 777 permision for nvault folder.
__________________