Godot Version
4.2
Question
I get the Error (Not all arguments converted during string formatting) in the line
( hint_label.text = tr(“HINT_ATTACK” % [attack_key]))
But the attack_key is a string
Any Idea what courses the error? i mean is clearly a string
var jump_key:String = "W"
var attack_key:String = "Q"
var sprint_key:String = "SHIFT"
func display_conlling_hint(display_time:float, update:Hint_Typs, dialoge_dependency:bool):
match update:
Hint_Typs.SPRINT:
hint_label.text = tr("HINT_SPRINT" % [sprint_key])
Hint_Typs.ATTACK:
hint_label.text = tr("HINT_ATTACK" % [attack_key])