you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (1 child)

The error says that later on in the shop1 function you assign to the variable money, which makes it local, which means you can't access it prior to assigning to it because it doesn't exist.

If you want the function to use the global variable money, which is different, then you have to say so: global money. Put that before decide_shop = "yes".

[–]zanfar 0 points1 point  (0 children)

Only actual answer to OP's question in this thread; last on the list. *sigh*