Error: The identifier b is not declared in the current scope

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By FaresGaming

i cant add an image can someone help me?

sorry can you be more specific?

OgGhostJelly | 2023-01-07 14:24

:bust_in_silhouette: Reply From: Wakatta

It’s a typo especially if you have a cat.

So you may have code like this

extends Spatial

var action = 7
b

func _ready():
    pass

simply delete it or if it was intended for use then all variables must be declared with var so

var b = 0