I think string_copy(filename,string_length(filename)-9,9)
Try that in the debugger or something to make sure this is what you want... you might need to change it to string_copy(filename,string_length(filename)-8,9). Like I said before, GameMaker has a weird way of numbering the character positions and it confuses me...
So anyway, your whole code would befilename = get_open_filename("DG files|*.dg|All files|*.*",""); if(string_replace(string_copy(filename,string_length(filename) - 9, 9), "/", "\") == "\blank.dg"){ // DO SOMETHING }
Awesome it worked :D
Thank you very much!



Find content
Male
