Can some one fix this code and post a working copy

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

Hi am Watching this Godot video

21:01 of 40:18
he has

3 var coins = 0

5 func _ready():
$Coins.text = String(coins)
which works fine in Godot 3.4.4.

but in Godot 4.0 it gives me this error

No constructor of “String” matches the signature “String(int)”.

:bust_in_silhouette: Reply From: Ertain

Maybe, instead, try $Coins.text = str(coins)?