So I have this code for checking if ini file exists:
if file_exists(working_directory+"/savegame.ini")//check file exists or not
{
//open game
ini_open("savegame.ini");
global.battery = ini_read_real("variables","battery",0);
room=ini_read_real("variables","room",0);
ini_close();
}
else
message_background(bk_black)
message_size(-1,-1)
message_text_font(fnt_small,14,c_red,0)
show_message("No saved game found")//show msg
But even though the ini files exists, it still shows the message and then loads the game. What's wrong?



Find content
Male
