Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Buying stuff.

Author
Message
Major Payn
20
Years of Service
User Offline
Joined: 16th Dec 2003
Location: United States of America
Posted: 4th Jan 2005 05:45
I created a menu to buy items, it is as follows...



In the last bit, the player's money resource is supposed to go down by 500, however it does not stop going down, I want it to only subtract 500 from the Money(0) variable, but not keep doing it, but only once evertime the button is pressed. What should I do to make this happen?

Guns arn't the problem, people are the problem, shoot all the people and guns arn't a problem anymore.
Dream Patch Creations
19
Years of Service
User Offline
Joined: 5th Jan 2005
Location:
Posted: 6th Jan 2005 09:01
Let me guess, in total, it subtracts 2500.

I think this is because of the "For miners=80 to 85" statement.
it keeps looping this without changing either the buymenu variable or the scancode variable, therefore it will loop the whole code causing it to subtract money continuously.

Hope this helps

DreamPatch

Life is like a coffee revel, you get chewed up and spat back out. (Especially by some people on this forum!)

Login to post a reply

Server time is: 2024-11-27 18:56:01
Your offset time is: 2024-11-27 18:56:01