DaveTheCoder
Welp, im trying to save my username, password and email then use them on another scene how do i do this rn im trying,
func save_game()
var save_file = FileAccess.open("user://save.data", FileAccess.READ)
if save_file != null:
saved_username = save_file.get_as_text(currentusername)
saved_email = save_file.get_as_text(currentemail)
saved_password = save_file.get_as_texg(currentpassword)
else:
print("no data")
save_game()
print(saved_username)
print(saved_email)
print(saved_password)
func save_game():
var save_file = FileAccess.open("user://save.data", FileAccess.WRITE)
save_file. store_pascal_string(currentemail)
save_file. store_pascal_string(currentemail)
save_file. store_pascal_string(currentpassword)
but it says "Invaild argument for "get_as_text" function argument shoulb be "bool" but is "string"" and i don't now the length of the text so i can't use get_buffer.....