View Single Post
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 06-12-2012 , 16:16   Re: nVault saving enum.
Reply With Quote #16

Try doing some debugging to see why it isn't working. Put a client\console\server_print\log_amx where values are set for a player to make sure it is actually happening. Use nvault editor (see my sig) to view your nvault file to see if\how data is being saved. Make sure you shutdown\map-change after values are set so the data will be written to your .vault file.

Why are you using a switch for only one value?
PHP Code:
public client_putinserver(id) {
    
iAchLevel[id][CONNECT]++
    switch(
iAchLevel[id][CONNECT]) {
        case 
500: {
            
set_task(2.0"ReachAddict"id// Avoid playing the sound and printing the message to early.
        
}
    }
    
LoadData(id)


PHP Code:
public client_putinserver(id
{
    if ( ++
iAchLevel[id][CONNECT] == 500 
            
set_task(2.0"ReachAddict"id// Avoid playing the sound and printing the message to 
 
    
LoadData(id)

__________________

Last edited by Bugsy; 06-12-2012 at 16:16.
Bugsy is offline