"for" iterator variable "i" has an implicitly inferred static type. (Warning treated as error.)

Godot Version

4.2.2.stable

Question


I don’t know why I can’t use for loop on this array

Unable to replicate, if you scroll the bar to the right what else does it say? Do you have any classes, autoloads, etc. named “player” all lowercase? I use a for player in players loop all the time and it’s definitely not engine-reserved by default.

I found the error. It seems that I modified the settings, which caused this error to appear

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.