4.3.stable
extends Node
var score = 0
@onready var score_lable: Label = $ScoreLable
func add_point(): score += 1 score_lable.text = “You collected " + str(score) " coins!”
this is the code it says the error is right after score inside the parentheses in line 9. Im following a tutorial and am brand new so i dont even now what the error means can somebody both explain what the error means and how i can fix it?
Post your code as preformatted text in the future please.
This line is missing a + and should be this
score_lable.text = “You collected " + str(score) + " coins!”
Yh sry i figured it out it was just some bug i cut the text closed the editor and pasted it in and it worked
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.