¿Alguien puede ayudarme con esto?

Versión Godot



Hi, I made this line of code: “input_field.connect(“text_submitted”, self, “_on_text_submitted”)” and it gives me these two errors
“Línea 9:Cannot pass a value of type “String” as “int”.
Línea 9:Invalid argument for “connect()” function: argument 3 should be “int” but is “String”.” I don’t know what I have to fix. I’m going crazy trying to fix it.

You marked this as Godot 3, but provided 4.2.2 version.

Connect changed in time and you use it differently:

example(you see no " here):

see wiki:

it says “Expected indented block after function declaration.” which means that you forgot to put a tab after a function decleration, example:

func someFunction():
input_field.connect(“text_submitted”, self, “_on_text_submitted”)

this is wrong there’s no tab before the input_field

func someFunction():
"press tab here"input_field.connect(“text_submitted”, self, “_on_text_submitted

this is the write way, it’s just a syntax error