-
Posts
727 -
Joined
-
Last visited
-
Days Won
40
Content Type
Profiles
Forums
Events
Everything posted by peterisgb
-
i can see nothing in any of these pages aswell
-
thus this hasnt worked in my case.
-
oh, the minutes time, and few other things work fine. and when you go traveling the cost is 10,000 and it takes 10,000 if you only have this much in your hand. but if you have 20,000 it takes 20,000, if you have more it still takes 20,000.
-
hi, i need a little help, everything on the game is double doing everything, when you log in the count puts double in (logginedin.php) crimes (criminal.php) gym, and banks. i know that these aint the pages which the error is on, i've looked thro the globals, header, global_func and i cant see what is doing it. i checked for double posts and still cant see why this is doing it, any help would be good, or hints on what i can do, or look for. Thanks.
-
well i've always had a problem getting querys from the item section, because i would beleive that once i understand how to do that i can contiune, i think going along of the idea of collecting the weapon data + post=updade+etc i tried using this weapon way when displaying weapons in iframe on the side menu, but this failed.
-
i dont get any of that
-
has anyone got the images for this mod?
-
anyone got the images for this?
-
thanks biohazard. :)
-
cool, thanks for this, now moving onto weapon upgrade, i dunno where to start.
-
has anyone got a copy of the orignal of this or know the forum link of the orignal link, thanks.
-
Taking Mccodes v2.03/V1/LITE Paid/FREE mod requests
peterisgb replied to Ben Nash's topic in Requests & In Production
You Have 1 New mail. -
ok, here goes Well so you'll need to place these sql into the users table iron int 54 default 0 bronze int 54 default 0 silver int 54 default 0 copper int 54 default 0 tin int 54 default 0 Make a Page and call it minestats.php <?php include "globals.php"; global $db,$ir,$c,$userid,$h; $db->query("UPDATE users SET lastpage='Mine Stats' WHERE userid=$userid"); print "<h3>General Info:</h2>"; $exp=(int)($ir['exp']/$ir['exp_needed']*100); print "<table width='50%'><tr> <td><b>Iron:</b> {$ir['iron']}</td> <td><b>Bronze:</b> {$ir['bronze']}</td></tr><tr> <td><b>Silver:</b> {$ir['silver']}</td> <td><b>Copper:</b> {$ir['copper']}</td></tr><tr> <td><b>Tin:</b> {$ir['tin']}</td> <td><b>Gold:</b> {$ir['crystals']}</td></tr><tr> </table> <br /> <a href='mine.php'><h3>Go Mining</h3></a> <br /> "; if(isset($_POST['pn_update'])) { $db->query("UPDATE users SET user_notepad='{$_POST['pn_update']}' WHERE userid=$userid"); $ir['user_notepad']=stripslashes($_POST['pn_update']); print "<hr><b>Personal Notepad Updated!</b>"; } print "<hr>Your Personal Notepad:<form action='index.php' method='post'> <textarea rows='10' cols='50' name='pn_update'>".htmlspecialchars($ir['user_notepad'])."</textarea><br /> <input type='submit' value='Update Notes' /></form>"; $h->endpage(); ?> call this one mine.php <?php include "globals.php"; print " <div align='center'> Welcome to the mine. But you can go ahead and try, you might just get lucky.<br /> <a href='gomining.php'>Go Mining for Gold</a> <a href='gominingi.php'>Go Mining for Iron</a> <a href='gominingb.php'>Go Mining for Bronze</a> <a href='gominings.php'>Go Mining for Silver</a> <a href='gominingc.php'>Go Mining for Copper</a> <a href='gominingt.php'>Go Mining for Tin</a>"; ?> <? $h->endpage(); ?> Call this one goming.php <?php include "globals.php"; $rand = rand(1,5); $rand2 = rand(1,5); $reward = crystals; $randreward = rand(1,25); $userid = $ir['userid']; if($ir['brave'] > 4) { if($rand == $rand2) { $db->query("UPDATE users SET brave=brave-4 WHERE userid=$userid"); $db->query("UPDATE users SET $reward=$reward+$randreward WHERE userid=$userid"); print "While mining through the rubble you came across $randreward gold. <a href='mine.php'>Go Back</a>"; } else { $db->query("UPDATE users SET brave=brave-4 WHERE userid=$userid"); print "Sorry, you did not find anything. <a href='mine.php'>Go Back</a><br />"; } } else { print "Sorry, but you cant mine for at the moment. <a href='index.php'>Go Back</a><br />"; } ?> for bronze eetc, copy the page above and name the file and save.
-
well theres the thing, i got so fed up with it failing and not working so i deleted it. but ihave have another go and post it up
-
i would post it but it dont work :(
-
yh.. lol, to go abit more on this, beyond me of course, but the idea is, you mine, ore, bronze, tin and more, Then the idea was to melt them, combine them together then upgrade the wepaons, i'm working on the mineing part now
-
Taking Mccodes v2.03/V1/LITE Paid/FREE mod requests
peterisgb replied to Ben Nash's topic in Requests & In Production
http://makewebgames.io/showthread.php/40586-Attacks-into-Units -
duh lol, thanks djkanna, this works a charm now Here is completed file for those who to wish to use this <?php include "sglobals.php"; //This contains general thingies switch($_GET['action']) { case 'helpupdate': helpupdate(); break; default: index(); break; } function index() { global $db,$h,$set; print "<h3>Help Tutorial</h3> <form action='helptut.php?action=helpupdate' method='post'> <textarea rows=30 cols=90 name='helptext' class='input'>{$set['help']}</textarea><br /> <input type='submit' value='Update Help Tutorial' /></form>"; } function helpupdate() { global $db,$h,$set; if($_POST['helptext']) { $db->query("UPDATE settings SET conf_value='{$_POST['helptext']}' WHERE conf_name='help'"); $set['help']=stripslashes($_POST['helptext']); print "Help Updated!<a href='helptut.php'>Back</a>"; } } $h->endpage(); ?>
-
Hi, i'm been working on enabling the Help Tutorial to be abled to update from the staff page without going into the server. Well here is what i have so far <?php include "sglobals.php"; switch($_GET['action']) { default: index(); break; } function index() { global $db,$h,$set; print "<h3>Help Tutorial</h3> <form action='helptut.php?action=helpupdate' method='post'> <textarea rows=30 cols=90 name='helptext' class='input'>{$set['help']}</textarea><br /> <input type='submit' value='Update Help Tutorial' /></form>"; } function helpupdate() { global $db,$h,$set; $db->query("UPDATE settings SET conf_value='{$_POST['helptext']}' WHERE conf_name='help'"); print "Help Updated!<a href='helptut.php'>Back</a>"; } $h->endpage(); ?> The problem i am having is that it shows up the text within the box, but when you click update is doesnt update, is just goes back to the same page, the link shows its gone to the right page but thats it. If some could help me figure out whats wrong they can use this aswell, add Fields 'Help' to the Table 'Settings'
-
mccodes v2
-
erm.. i already said i couldn't fix it... so trying again when i spent a whole week on it wont help, hense why i asked after a week trying if anyone has a copy of this.
-
i'm getting this with the whole game, and i have checked the querys.
-
i would post what i had so far, but because i couldnt do it i deleted it. hense why i asked if someone had a working copy cos i couldnt fix it
-
erm.. i would of though so, but this doesnt work so i cant really tell you.
-
anyone got a corrected version for this?