Thanks, Superku

I tried this:

Code:
function points_startup()
{
var filehandle;
filehandle = file_open_read("highscore.txt");
if (filehandle)&&(level == 2) 
	{
	   file_str_read(filehandle, name_str);
	   points = file_var_read(filehandle);
	}
else 
{
	str_cpy(name_str, "None");
	points = 0;
}
             
}


But I'm doing something wrong. When level 2 starts the points variable reads 0 instead of the saved high score.

Just had a thought. Maybe I should save the high score as a .dat file instead of a .txt

Last edited by JazzDude; 09/30/12 04:58.