Code:
var save_handle = 0;

function save_settings() {		
	save_handle = file_open_write("resolution.txt");
	if (save_handle == 0) { 
		error("Hello user.  A save system error has occurred.");
		error("To resolve this issue, you might try to 'revert' to a 'better' OS or modify user priviledges for folder n.");
		error("We recommend that you send a report to Microsoft and then go try to make better use of your time.");
		error("Why are you still here?");
		return;
	}
	file_var_write(save_handle,resolution);
	file_close(save_handle);
}



Quoting Ganderoleg.
Quote:
Is there same example in C-Script on how this can be fixed...



Indeed, that wasn't it.


point @ idea fair & obvious = check return value