Jump to content
MakeWebGames

MyGunWars

Members
  • Posts

    237
  • Joined

  • Last visited

Everything posted by MyGunWars

  1. Re: [V2] New Small Accuracy Mod [V2] Nice Something To Add To The Attack Statistics
  2. Re: [McCodes V2] Donator/regular User Bank Cap Its A Nice Add On :-D
  3. Re: Shops   And in English? Does this mean you want users to be able to access all shops no matter the location?   I believe so. Yes That What I Need Help With.
  4. Re: Shops V2 And Its Called shops.php
  5. I Need Help Making A File That You Can Go To The Shops And See All The Shops And Go In To The Shops And Buy Items. And It Dose Not Matter What Your Location Is. This Is Where I Got: <?php include "globals.php"; if($ir['frozen']>0) { die("Your Money Has Been Frozen Please Contact A Member Of Staff"); } $getinfo = sprintf("SELECT shopID,shopLOCATION,shopNAME,shopDESCRIPTION FROM shops"); $doinfo = mysql_query($getinfo); echo "You Begin Looking Through CITY And You See A Few Shops. "; echo "<center>[img=/testimages/shopping.jpg]</center> "; echo " <table cellspacing='2' cellpadding='2' border='1' class='table' width='85%'>"; echo "<tr>"; echo "<th style='background:black'>Shop Name</th>"; echo "<th style='background:black'>Shop Description</th>"; echo "<th style='background:black'>Shop Picture</td>"; echo "<th style='background:black'>Go Shopping</td>"; echo "</tr>"; while ($shops = mysql_fetch_array($doinfo)) { echo "<tr>"; echo "<td style='background:black'>".$shops['shopNAME']."</td>"; echo "<td style='background:black'>".$shops['shopDESCRIPTION']."</td>"; echo "<td style='background:black'><center>[b]Coming Soon[/b]</center></td>"; echo "<td style='background:black'><center>[[url='shops.php?shop=".$shops[']Enter Shop][/url]</center></td>"; echo "</tr>"; } echo "</table>"; $h->endpage(); ?>
  6. Re: [mccodes] Simple Theme Selector Where Do I Add This If I Have V2?   $header = $ir['header']; requite ($header.".php");
  7. Re: Preferences Add On Ya But I Made It For My Friend And His Hole Site Is Java.
  8. Re: Preferences Add On idk A Friend Of Mine Wanted Something Different For His Main Menu You And I Came Up With This.
  9. This Add On Will Allow The Link To Have No Pic But When You Hover Your Mouse Over It You Will Get A Red Arrow. :-D   STEP ONE: Copy this code into the header.php under <HEAD> of your file document. <HEAD>   <SCRIPT LANGUAGE="JavaScript"> <!-- Begin function imgover(imgname){ imgname.src = "arrow.gif" } function imgout(imgname){ imgname.src = "blank.gif" } // End --> </SCRIPT>   STEP Two: Put this last code into the mainmenu.php of your php document   [img=blank.gif] [url='/index.php']Home[/url] [img=blank.gif] [url='/inventory.php']Inventory[/url] When You Add More You Need To Add <img name='pic3'And Keep Going Up For Every One You Add. Step 3: Add The 2 Images To The Folder images.
  10. They Pix A Option And Then Click On Go And It Brings Them There. You Need To Change It To Fit You Site. :-D STEP ONE: Copy this code into the header.php under <HEAD> of your file document.   <SCRIPT LANGUAGE="JavaScript"> <!-- Begin function formHandler(form){ var URL = document.form.site.options[document.form.site.selectedIndex].value; window.location.href = URL; } // End --> </SCRIPT>   STEP TWO: Paste this code into preferences.php or you can change it up and put it eles where.   <center> <form name='form'> <select name='site' size='1'> <option value=''>Go to.... <option value='http://www.mygunwars.com/preferences.php?action=sexchange'>Sex Change <option value='http://www.mygunwars.com/preferences.php?action=passchange'>Changes Your Password <option value='http://www.mygunwars.com/preferences.php?action=namechange'>Name Change <option value='http://www.mygunwars.com/preferences.php?action=picchange'>Pic Change <option value='http://www.mygunwars.com/login.php'>My Gun Wars </select> <input type=button value='Go!' onClick='javascript:formHandler(this)'> </form> </center>
  11. Re: Help with Conversion... IM Me Its Easy [email protected]   To convert a v2 mod to work with v1: }Open the v1 mod you wish to convert and find then find: session_start(); require "global_func.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; require "header.php"; $h = new headers; $h->startheaders(); include "mysql.php"; global $c; $is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die(mysql_error()); $ir=mysql_fetch_array($is); check_level(); $fm=money_formatter($ir['money']); $lv=date('F j, Y, g:i a',$ir['laston']); $h->userdata($ir,$lv,$fm); $h->menuarea(); }Replace it with this: include "globals.php"; _______________________________________________________________________________ }Find: mysql_ }Replace it with this: $db-> }Find: fetch_array }Replace it with this: fetch_row Much safer to do it this way and you're done. You know that the sql querys in v2 are written differently than in v1, but that doesnt matter, the usual mysql_query will work just the same, there is no need to change it.
  12. Re: Businesses Mod [Mccode V2] Ya I Know Im Working On That One To.
  13. Re: [mccode v2] Humans vs. Zombies EVENT mod [done, v1.0] ok
  14. Re: Businesses Mod [Mccode V2] If They Have A Job That You Made For The job.php File This Will Not Be Able To Get A Job In This Business Mod. Find: function send_application() { global $ir;   Add Under: if($ir['job']) { echo 'You Have A Job'; exit; }
  15. Re: Help Please Very Urgent Add Me On MSN [email protected]
  16. Re: [mccode v2] Humans vs. Zombies EVENT mod [done, v1.0] Is This Right In attack.php   [b]What do you want to do with {$odata['username']} now?[/b] <form action='attackwon.php?ID={$_GET['ID']}' method='post'><input class='textbox' type='submit' value='Mug Them' /></form> <form action='attackbeat.php?ID={$_GET['ID']}' method='post'><input class='textbox' type='submit' value='Hospitalize Them' /></form> <form action='attacktake.php?ID={$_GET['ID']}' method='post'><input class='textbox' type='submit' value='Leave Them' /></form>"; } $dert=$db->query("SELECT * FROM ladder WHERE ladderID=$userid"); $you=$db->fetch_row($dert); $dert=$db->query("SELECT * FROM ladder WHERE ladderID={$odata['userid']}"); $them=$db->fetch_row($dert); if($you && $them) { print"<form action='attackladder.php?ID={$_GET['ID']}' method='post'><input class='textbox' type='submit' value='Ladder Attack Them' /></form>"; if ($ir['humanorzombie'] == 1 && $odata['level'] >= $ir['level'] && $odata['humanorzombie']==0) { echo '<form action="attackbite.php?ID='.$_GET['ID'].'" method="post"><input type="submit" value="Bite Them" /></form>'; } }
  17. Re: [mccode v2] Humans vs. Zombies EVENT mod [done, v1.0] Nice Mod
  18. Re: [MMCODES V2] Menu Creator to work with the Themecreator   Ya They Are :-D :-D :-D
  19. Re: [MMCODES V2] Menu Creator to work with the Themecreator Nice Mod
  20. Re: Businesses Mod [Mccode V2] I Have A Good Idea Because I See Users Geting A Job In This Mod And In The Games Jobs Is There A Way To Block Them So They Dont?
  21. Re: [mccode v2] Humans vs. Zombies EVENT mod Sounds Kool
  22. Re: [mccode v1] bug report mod V2 Code SQL: CREATE TABLE `bugports` ( `brID` int(11) NOT NULL auto_increment, `brREPORTER` int(11) NOT NULL default '0', `brTEXT` longtext NOT NULL, PRIMARY KEY (`brID`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;   bugreport.php <?php require "globals.php"; if($_POST['report']) { event_add(1,"New Bug Report",$c); mysql_query("INSERT INTO bugports VALUES('',$userid,'{$_POST['report']}')", $c) or die("Your report could not be processed, make sure you have filled out the form entirely."); print "Report processed!"; } else { print "<h3>Bug Report</h3> Know of a bug? Don't exploit it! Report it here, you may be rewarded :) <form action='bugport.php' method='post'> What the bug is: <textarea rows='7' cols='40' name='report'>{$_GET['report']}</textarea> <input type='submit' value='Send Report' /></form>"; } $h->endpage(); ?>   Open Up staff.php Find case 'reportsview': reports_view(); break; case 'repclear': report_clear(); break;   After It Add case 'bugreportsview': bugreports_view(); break; case 'bugrepclear': bugreport_clear(); break;   Add Into The smuen.php [[url='staff.php?action=bugreportsview']Bug Reports[/url]]   Add Into staff.php At The End Before $h->endpage(); ?>   function bugreports_view() { global $ir,$c,$h,$userid; print "<h3>Bug Reports</h3> <table width=80%><tr style='background:gray'><th>Reporter</th> <th>What the bug is</th> <th> </th> </tr>"; $q=mysql_query("SELECT br.*,u1.username as reporter FROM bugports br LEFT JOIN users u1 ON u1.userid=br.brREPORTER ORDER BY br.brID DESC",$c) or die(mysql_error()); while($r=mysql_fetch_array($q)) { print "\n<tr> <td>[url='viewuser.php?u={$r[']{$r['reporter']}[/url] [{$r['brREPORTER']}]</td> <td>{$r['brTEXT']}</td> <td>[url='staff.php?action=bugrepclear&ID={$r[']Clear[/url]</td> </tr>"; } print "</table>"; } function bugreport_clear() { global $ir,$c,$h,$userid; $_GET['ID'] = abs((int) $_GET['ID']); mysql_query("DELETE FROM bugports WHERE brID={$_GET['ID']}",$c); print "Report cleared and deleted! [url='staff.php?action=bugreportsview']> Back[/url]"; }   Need Any More Help Mail Me [email protected]
  23. Re: [V2] Main Menu (army/gangsta Theme) Never Mind I Fixed It
  24. Re: Stop people from using IE on website I Dont Use Gay As The Word Homo And I Have Gay Friends Too
  25. Re: Stop people from using IE on website I Think This Is Gay I Have Put A Link On My Log In Page Telling Users That The Game Is Best Viewed In Fire Fox.
×
×
  • Create New...