Szalonytomek21 Please format your code properly using ~~~ tags at the start/end of a snippet.

The error you've got is pretty informative. It states that the signal handler for timeout signal should be a function with 0 arguments while you supplied a function with 1 argument. So try to remove that argument from timeout handling function.

To add a parameter to a built-in signal, you need to bind the parameter when connecting the signal. There's an example here:
https://docs.godotengine.org/en/4.0/classes/class_object.html#class-object-method-connect

I remember seeing a better example, but I can't find it.

There could be other mistakes in your code.

Please use ~~~ before and after the code, so that it will be indented property. Also provide your Godot version. I'm guessing it's 4.x.