Jump to content


oliverrook's Content

There have been 1 items by oliverrook (Search limited from 29-March 23)


By content type

See this member's

Sort by                Order  

#279454 Var A keeps increasing more than I want it to

Posted by oliverrook on 15 May 2020 - 04:38 PM in Ask a Pro

My code is rather short, but I'll put it in a pastebin anyways.
I'm struggling to figure out what the problem here is.
I want to have a increase each time I press a button on the wall. I'm essentially building a combat minigame and want it to go to the next level each time I press the button, but whenever I press the button it just quits out entirely.
This is my code:
https://pastebin.com/bg5X5ycU
I put in some code to check what A is and what levels is, just to make sure I wasn't crazy, and for some reason, it outputs this:
7 (The value of "a")
3 (The value of "levels")

For the life of me, I can't figure out why it's outputting 7.