I'm currently making a test text-based RPG, I'm currently on the currency system and I am receiving an error. I'm not sure why.
for (int gold; gold <= 10; gold++){
if (gold == 10) {
break;
Console.WriteLine("You now have " + gold + " Gold Pieces"); }
}
I'm not the most experienced coder ever, I'm still really new to C# so if you have anything that may help me get through this or even a better way to give the currency to the player, it would be appreciated.
Thank you.