How can you tell if a savegame exists?
#1
Posted 03 March 2012 - 10:29 PM
I was wondering what should be put in an if statement to tell if a savegame exists or not.
Thanks for any help
~gardian20
#2
Posted 03 March 2012 - 10:33 PM
if file_exists("gamesave.sav") do something...
CanŽt remember what the actual GM save file is called right now, but just play a game and press f5, then look in the directory of the game gm81/gmk and youŽll find it!
#3
Posted 03 March 2012 - 10:55 PM
oh, i have been using the name without .sav on the end with game_load(thing) and game_save(thing)You need to use the "file_exists" command and just...
if file_exists("gamesave.sav") do something...
CanŽt remember what the actual GM save file is called right now, but just play a game and press f5, then look in the directory of the game gm81/gmk and youŽll find it!
#4
Posted 03 March 2012 - 11:04 PM
#5
Posted 04 March 2012 - 02:19 PM
gotcha, thanks alot, IT WORKS!The name has to be in quotes... either "name.sav" or 'name.sav' will, do, and as I said, just save a game and open your game folder to see exactly what the file that was saved is called!
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users











