Newbie Posted February 22, 2012 Share Posted February 22, 2012 (edited) Ok basically what this does is lets users buy houses for money and points/crystals or whatever its called on your game This might need to be edited to fit you game as i only set it up on stranded estate.php & staff_houses.php dunno if this has been done before but never seen it on these fourms 1. Add this to your database i used hPOINTS as i am using points on my game just change the POINTS to whatever you want it called and edit all posts where it says ['hPOINTS'] You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. 2. estate.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. staff_houses.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. and thats it enjoy :) if you find any bugs post here but there should not be any i have tested and working fine :) Screenshots Add house [ATTACH=CONFIG]283[/ATTACH] Edit house [ATTACH=CONFIG]284[/ATTACH] Viewing houses [ATTACH=CONFIG]285[/ATTACH] Buy house [ATTACH=CONFIG]286[/ATTACH] Edited July 22, 2014 by Newbie Bug fixed thanks to sniko :) thanks Quote Link to comment Share on other sites More sharing options...
Newbie Posted February 22, 2012 Author Share Posted February 22, 2012 Ok i found a bug when you click to add the house or edit it and you put in the amount of crystals/points it doesnt update it on estate.php or databse i have to manualy add it through the database for it to change hmm ill take another look tommorow see if i can fix it as its late here and tried unless anyone else wants to take a look :) would appreciate it Quote Link to comment Share on other sites More sharing options...
sniko Posted February 22, 2012 Share Posted February 22, 2012 Line 84, change to Points Cost: <input type='text' name='hPOINTS'' value='{$old['hPOINTS']}' /> To fix the bug found by Newbie Quote Link to comment Share on other sites More sharing options...
Newbie Posted February 22, 2012 Author Share Posted February 22, 2012 i tried that but i didn't take out the <br /> original post updated thanks sniko Quote Link to comment 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.