berry05 Posted December 17, 2008 Share Posted December 17, 2008 ok quick question..i looked all over for this...quick question.. i have a if else statement but i need to know how to stop it..i want it to see if user has enough gold and if not the else is nothing....and then it checks if user has already bought one and if not it buys it for the user..i did this and when i buy a hoe with not enough money it says "you dont have enough money" but still buys the hoe..thats because it still goes through the script..i need it stopped if the "if" statement is true for not enough gold.. anyone have any suggestions? Quote Link to comment https://forums.phpfreaks.com/topic/137423-solved-how-to-stop-a-script/ Share on other sites More sharing options...
Lamez Posted December 17, 2008 Share Posted December 17, 2008 use exit; Quote Link to comment https://forums.phpfreaks.com/topic/137423-solved-how-to-stop-a-script/#findComment-718094 Share on other sites More sharing options...
berry05 Posted December 17, 2008 Author Share Posted December 17, 2008 thxs...ill try it! Quote Link to comment https://forums.phpfreaks.com/topic/137423-solved-how-to-stop-a-script/#findComment-718096 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.