I have the following code:
function test_save()
{ STRING* save_str = " ";
STRING* num_str = " ";
str_cpy(save_str,"save ");
str_for_num(num_str,sys_month);
str_cat(save_str,num_str);
str_cat(save_str,"/");
str_for_num(num_str,sys_day);
str_cat(save_str,num_str);
str_cat(save_str,"/");
str_for_num(num_str,sys_year);
str_cat(save_str,num_str);
str_cat(save_str," ");
str_for_num(num_str,sys_hours);
str_cat(save_str,num_str);
str_cat(save_str,":");
str_for_num(num_str,sys_minutes);
str_cat(save_str,num_str);
str_cat(save_str,":");
str_for_num(num_str,sys_seconds);
str_cat(save_str,num_str);
str_cat(save_str," ");
game_save(save-str,1,SV_VARS);
}
When I call test_save(), there is no .sav file created by game_save(). Am i doing somehthing wrong? Why would it not create a save file?
Last edited by Caermundh; 03/06/11 21:23.