N
NizarPlayz
Guest
So i was watching a video about ini files how they work etc.. So i was writing a script
scr_savegame
so i was geting this error
ERROR in line 3 pos 16 unexpected symbol in expression
i wrote all the code same as the video
now i started to wrote other script
scr_loadgame
and i was getting the same error
ERROR in line 4 pos 21 unexpected symbol in expression
why is this happening?
I checked my all code and there is nothing wrong? I am getting errors for no reason... Really funny.
And i am using Game Maker 8.0 Pro.
Any help would be really appreciated!
This is the video i was watching
scr_savegame
Code:
if (file_exists("Save.sav")) file_delete("Save.sav");
ini_open("Save.sav");
var SavedRoom = room;
ini_write_real("Save1","room",SavedRoom);
ini_close();
ERROR in line 3 pos 16 unexpected symbol in expression
i wrote all the code same as the video
now i started to wrote other script
scr_loadgame
Code:
if (file_exists("Save.sav"))
{
ini_open("Save.sav");
var LoadedRoom = ini_read_real("Save1","room",room0);
ini_close();
room_goto(LoadedRoom);
}
else
{
//do nothing
}
ERROR in line 4 pos 21 unexpected symbol in expression
why is this happening?
I checked my all code and there is nothing wrong? I am getting errors for no reason... Really funny.
And i am using Game Maker 8.0 Pro.
Any help would be really appreciated!
This is the video i was watching
Last edited by a moderator: