0 votes

here´s the code
what could i have done wrong?
i get the error incomplete format in operator %

func _ready():
var prompts = ["lindo","maravilhoso","não","mais"]
var story = "Isso é %s e eu achei %s. Mas %s quero s%."
print(story % prompts)

Godot version 3.5
in Engine by (12 points)

1 Answer

0 votes

It might be that last formatting operator, it's s% when it likely should be %s.

by (286 points)

yes! thank you.
learning this can be tough at times.
i have so much trouble spotting my own mistakes.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.