0

UnboundLocalError: local variable 'gold' referenced before assignment

...

if chooseItem == "1":
                gold, arrows, whip, cannnonballs, heartPotions, megaHeartPotion, infinityPotion, infinityXPotion, duelBloodXXHealer, bloodXHeal, energyYPotion, basicRainbowHealer = bloodXHealerZZ.buy(gold, arrows, whip, cannnonballs, heartPotions, megaHeartPotion, infinityPotion, infinityXPotion, duelBloodXXHealer, bloodXHeal, energyYPotion, basicRainbowHealer)
4
Contributors
4
Replies
6
Views
8 Years
Discussion Span
Last Post by Stefano Mtangoo
0

When you call
bloodXHealerZZ.buy(gold, arrows, whip, ...)
you need to have a value for gold, arrows, whip, and so on.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.