I'm getting a parser error and I don't know how to fix it
onready var names = SaveFiles.names
onready var current = SaveFiles.current
func ondone_pressed():
SaveFiles.load_names()
if current == "user://save_1.save":
names.1 = $TextEdit.text
elif current == "user://save_2.save":
names.2 = $TextEdit.text
elif current == "user://save_3.save":
names.3 = $TextEdit.text
elif current == "user://save_4.save":
names.4 = $TextEdit.text
elif current == "user://save_5.save":
names.5 = $TextEdit.text
SaveFiles.save_names()
'names' is a dictionary in an autoload and the names functions are for saving them but I think they are irrelivant.
the line with the error is 'names.1 = $TextEdit.text'
pls help