I'm trying to code a script that reads/writes some informations on a .txt file.
I need to save these informations in global variables when the game start, and update them dynamically when some trigger happens in game.
So i included a .inc script (mapInfo.inc) in base.inc and created a file object with my txt. (access: reading).
I read the info and load it in const variable.
Everything works! ok!
But when i try to reopen the file object to write (and update the informations when get the trigger) i get a "File not open" error...the syntax is ok, i think the problem is that the file is opened the firts time and never closed (even though i used file.Close)...or something like that
Someone can help me?
Thanks!