Jump to content
MakeWebGames

bob324

Members
  • Posts

    21
  • Joined

  • Last visited

    Never

bob324's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Re: Working Close Page System [MCCODE V2] I know Im probably being stupid here, but what exactly does this do or for? :?
  2. Re: [mccode v2] Casino Mod: Blackjack [$30] Have just purchased this, waiting for it now :-D
  3. Re: 3 Revamps [V2]   It will be because you have used eg- $ir[itempic] instead of $r[itempic]
  4. Re: [MCCODE V2] User Competitions This is as far as Ive got with it. Please feel free to fix the other problems. And before you say I know it doesnt work. createcomp.php <?php include "globals.php"; if($ir['money'] < 100000) { die("You don't have enough money. You need \$100,000."); } if($ir['compown']) { die ("You are already running a competition!"); } if($_POST['submit']) { $name=htmlspecialchars($_POST['name']); $desc=htmlspecialchars($_POST['desc']); $db->query("INSERT INTO competitions VALUES('','$_POST[name]','$_POST[desc]','{$ir['username']}','$_POST[cash]','$_POST[crys]','$_POST[item]','$_POST[fee]','0','0','$_POST[time]')"); $i=$db->insert_id(); $crys=$_POST[crys]; $cost=$cash+100000; $db->query("UPDATE users SET compown=$i,money=money-$cost,crystals=crystals-$crys WHERE userid=$userid"); print "Competition created!"; } else { print "<h3> Create A Competition </h3> <form action='createcomp.php' method='post'><input type='hidden' name='submit' value='1' /> Name:<textarea name='name' cols='20' rows='1'/>name</textarea> Description: <textarea name='desc' cols='40' rows='7'>description</textarea> Entry Fee:<input type='text' value='0' name='fee' /> Cash Reward:<input type='text' value='0' name='cash' /> Crystals Reward:<input type='text' value='0' name='crys' /> Hours:<input type='text' value='24' name='time' /> Item: ".item_dropdown($c,'item')." <input type='submit' value='Create Competition for \$100,000' /></form>"; } $h->endpage(); ?>   comps.php <?php include "globals.php"; $q=$db->query("SELECT * FROM competitions ORDER BY id"); print" <table class='table' cellspacing='1' width =75%> <tr><th>Creator</th><th>Reward</th><th>Entry Fee</th><th>Entrys</th><th>Time Left (hours)</th><th>View</th></tr>"; while($r=$db->fetch_row($q)) { print " <tr> <td>{$r['creator']}</td> <td>{$r['rewardcash']} {$r['rewardcrys']}</td> <td>{$r['fee']}</td> <td>{$r['entrys']}</td> <td>{$r['time']}</td> <td>[url='viewcomp.php?id={$r[']View[/url]</td> </tr> </td></tr>"; } ?>   compentry.php <?php include "globals.php"; $_GET['u'] = abs((int) $_GET['u']); $q=$db->query("SELECT * FROM competitions WHERE id={$_GET['u']}"); if($db->num_rows($q) == 0) { print "Invalid Competition"; } else { $r=$db->fetch_row($q); if($ir['money']>49999) { print " You have entered the competition [b]{$r['name']}[/b] Entering costed you \${$r['fee']} {$r['entrys']} people have entered this competition."; $db->query("UPDATE users SET money=money-50000 WHERE userid=$userid"); } $db->query("UPDATE competitions SET profit=profit+{$r['fee']} WHERE id={'$_GET['u']}"); $db->query("INSERT INTO compentrys VALUES('',$userid)"); else { print "You do not have enough money to join this competition."; } ?>   viewcomp.php <?php include "globals.php"; $_GET['u'] = abs((int) $_GET['u']); if(!$_GET['u']) { print "Invalid use of file"; } else { $q=$db->query("SELECT * FROM competitions WHERE id={$_GET['u']}"); if($db->num_rows($q) == 0) { print "This competition no longer exists."; } else { $r=$db->fetch_row($q); print " <table width=100% cellspacing=1 class='table'> <tr style='background:gray'> <th width='50%'>General Info</th><th width='50%'>Rewards</th> ></tr> <tr> <td> Creator: {$r['creator']} Time left (Hours): {$r['time']} </td> <td> Money: \${$r['rewardcash']} Crystals: {$r['rewardcrys']}</tr> <tr> <th colspan='2'>Users Joined</th></tr>"; $b=$db->row_count($q); print " <tr><td>$b</td></tr> <tr><td>[url='compentry.php']Enter this competition[/url]</td></tr> </table> "; } $h->endpage(); ?>   Will try again next week when I have time.
  5. Re: [MCCODE V2] User Competitions   No it wont first off if($ir['money'] < 500000) { die("You don't have enough money. You need \$100,000."); }   2 totally different amounts secondly print "<h3> Create A Competition </h3> <form action='creategang.php' method='post'><input type='hidden' name='submit' value='1' /> This is going to create a gang page :P Spell check that query.. And The Insert Isn't correct that isn't the right way.. :? What are you on about spell check what? and what isnt the right way?
  6. Re: [MCCODE V2] User Competitions Blackdog nice notice of the amounts didnt spot that. Im going to be busy the next few days so will not have time to sort the rest out, I will post what Ive got so far tonight. But if nobody can get it working I should be able to do it next week.
  7. Re: [MCCODE V2] User Competitions     Sorry but no it doesnt. This mod has allot of bugs and im working my way through them. This is the createcomp.php page working below (and tested). Ive got some of the others working but they need more work. Will post the rest if I can sort it out.   <?php include "globals.php"; if($ir['money'] < 500000) { die("You don't have enough money. You need \$100,000."); } if($ir['compown']) { die ("You are already running a competition!"); } if($_POST['submit']) { $name=htmlspecialchars($_POST['name']); $desc=htmlspecialchars($_POST['desc']); $db->query("INSERT INTO competitions VALUES('','$_POST[name]','$_POST[desc]','{$ir['username']}','$_POST[cash]','$_POST[crys]','$_POST[item]','$_POST[fee]','0','0','$_POST[time]')"); $i=$db->insert_id(); $crys=$_POST[crys]; $cost=$cash+100000; $db->query("UPDATE users SET compown=$i,money=money-$cost,crystals=crystals-$crys WHERE userid=$userid"); print "Competition created!"; } else { print "<h3> Create A Competition </h3> <form action='createcomp.php' method='post'><input type='hidden' name='submit' value='1' /> Name:<textarea name='name' cols='20' rows='1'/>name</textarea> Description: <textarea name='desc' cols='40' rows='7'>description</textarea> Entry Fee:<input type='text' value='0' name='fee' /> Cash Reward:<input type='text' value='0' name='cash' /> Crystals Reward:<input type='text' value='0' name='crys' /> Hours:<input type='text' value='24' name='time' /> Item: ".item_dropdown($c,'item')." <input type='submit' value='Create Competition for \$100,000' /></form>"; } $h->endpage(); ?>
  8. Re: [mccode V2] Player of the week...   you could just put -   item_add($rr['userid'], 25, 2);
  9. Re: [mccode V2] Item needed to perform crime. Nice, ive been meaning to get round to doing this for ages. will give it a go later and let you know. thanks +1
  10. Re: [Mccodes V2] improved schooling works off clicks not days   lol, you could also say 8,760,000 a year and 876,000,000 in 100 years what kind of players play 24 hours a day??? + i dont want to get personal but you only get 80 players a day not 1000 and 20 an hour again not 1000 this is a good idea and if it does get you 1000 players an hour playing then im all for it, forget the bandwith it would be worth it!
  11. Re: [mccode v2] Numbers Game Is anybody able to get the cron working for this Ive tried and failed! It gives the winner crystals but doesnt mail the user or delete the players from the list once the game ends?
  12. Re: [mccode] A better Safer Forum for your members to enjoy I love this mod its brilliant, just cant get my members to use it! GRRR!
  13. Re: [mccode v2] Donator and Non-Donator Lottery I like this mod but am struggleling to get it working perfectly!
  14. Re: [mccode v2] Ajax Chat my edition I dont like these chatboxes!
  15. Re: [mccode] Battle Arena [$20] I clicked on the link to pay and the page doesnt seem to exist anymore! :?
×
×
  • Create New...