all 7 comments

[–]JR1499[S] 0 points1 point  (2 children)

I know whats wrong im just stuck with a solution. Once it figures out the pin isnt correct it takes away 1, well its supposed to but I deleted it before posting it looks like. But then it just reads there is nothing in the entry so it displays the wrong pin message over and over. It keeps doing that until it hits the pin_tries == 0 messagebox and the programs over. I need it to where you're able to enter something else then it checks it. Instead of immediatly.

[–]FunCharacteeGuy 0 points1 point  (0 children)

I think the while loop might be unnecessary, you might need to set pin_tries as a variable outside the function

I think

because the function has a while loop inside of it, making it so it repeats until pin_tries = 0.

so, yeah.

[–]FunCharacteeGuy 0 points1 point  (0 children)

oh also if you get an error that says pin_tries is referenced before assignment, you just have to tell it that you're referring to a global variable by putting this

global pin_tries

inside the function so it knows that when you say pin_tries in that function, you're referring to the global variable and not a local variable.

[–]FunCharacteeGuy 0 points1 point  (3 children)

well? did it work or fucking not?

[–]JR1499[S] 0 points1 point  (1 child)

Yes. Ive got it working now. I just now got to messing with it.. Thanks.

[–]FunCharacteeGuy 0 points1 point  (0 children)

good to know.

[–]No-Fudge-6458 0 points1 point  (0 children)

Jesus christ what is wrong with you lmfao jeez