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)
}
__________________