Equinox Posted January 17, 2010 Posted January 17, 2010 So, the guards 'mod' just adds will to your house? If so, why does it need 3 files and 6 SQL's? I'm pretty sure if you maybe added a switch() in estate.php you could do it? For example switch($_GET['page']) { case "HouseGuards" : HouseGuards(); break; default : index(); break; } function index() { // Estate stuff } function HouseGuards() { if((isset($_POST['Guard'])) && ctype_digit($_POST['Guard'])) { $Price = 100 * $_POST['Guard']; echo 'You bought '.number_format($_POST['Guard']).' for $'.number_format($Price).''; } echo 'Here you may buy guards for your house, enter an amount to buy below'; echo ' Amount: '; } ?> Unless I'm completely miss-understood, however that is an idea. Good job :) But a little more explanation should help :thumbsup: Quote
JAMESOMIGHTY Posted January 18, 2010 Author Posted January 18, 2010 well in the estate.php i have only edited the bits where it adds will on, cos say if you buy 10 guards then buy a new house it would of set your will, to the houses will, taking the will from the guards you bought off, so i changed that and i suppose the 3 files could be put in one however i would say the sequals are neccesary but i may be wrong, anyway it all works so i dont think it matters how many files the mods split into unless you have limited space or something. Plus it does a bit more than just add will on ,this could be a quite fun addon to a game and good building blocks for a great mod Quote
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.