Jump to content
MakeWebGames

Magictallguy

Administrators
  • Posts

    2,130
  • Joined

  • Last visited

  • Days Won

    145

Everything posted by Magictallguy

  1. Re: Polls error Are you by any chance a hippy? (Hippies are cool!)  
  2. Re: Drugs Error Hahaha point well made!
  3. Re: who likes mccodes? A simple Google search got me this... Very hard to get? I think not! 3rd result in Google!
  4. Re: Hosting for Mccodes Or www.voxitize.com! xD
  5. Re: V2 Problems Replace your entire massmailer function with this (should be at the bottom of staff_special.php): function massmailer() { global $db,$ir,$c,$userid; if($_POST['text']) { $_POST['text']=nl2br(strip_tags($_POST['text'])); $subj="This is a mass mail from the administration"; if($_POST['cat']==1) $q=$db->query("SELECT * FROM users "); else if($_POST['cat']==2) $q=$db->query("SELECT * FROM users WHERE user_level > 1"); else if($_POST['cat']==3) $q=$db->query("SELECT * FROM users WHERE user_level=2"); else if($_POST['cat']==4) $q=$db->query("SELECT * FROM users WHERE laston>unix_timestamp()-15*60 ORDER BY laston DESC"); else $q=$db->query("SELECT * FROM users WHERE user_level={$_POST['level']}"); while($r=$db->fetch_row($q)) { $db->query("INSERT INTO mail VALUES('', 0, 0, {$r['userid']}, unix_timestamp(),'$subj','{$_POST['text']}')"); print "Mass mail sent to {$r['username']}. "; $db->query("UPDATE users SET new_mail=new_mail+1 WHERE userid = {$r['userid']}"); } print "Mass mail sending complete! [url='staff_special.php?action=massmailer']> Back[/url]"; } else { print "[b]Mass Mailer[/b] <form action='staff_special.php?action=massmailer' method='post'> Text: <textarea name='text' rows='7' cols='40'></textarea> <input type='radio' name='cat' value='1' /> Send to all members <input type='radio' name='cat' value='2' /> Send to staff only <input type='radio' name='cat' value='3' /> Send to admins only <input type='radio' name='cat' value='4' /> Send to users online OR Send to user level: <input type='radio' name='level' value='1' /> Member <input type='radio' name='level' value='2' /> Admin <input type='radio' name='level' value='3' /> Secretary <input type='radio' name='level' value='4' /> Special Op <input type='radio' name='level' value='5' /> Assistant <input type='submit' value='Send' /></form>"; } }
  6. Re: Database...Annoying! Try this:   <?php include "globals.php"; if($ir['jail'] or $ir['hospital']) { die("This page cannot be accessed while in jail or hospital."); } $mpq = $db->query("SELECT * FROM houses WHERE hWILL={$ir['maxwill']}"); $mp = $db->fetch_row($mpq); $_GET['property']=abs((float) $_GET['property']); if($_GET['property']) { $npq = $db->query("SELECT * FROM houses WHERE hID={$_GET['property']}"); $np = $db->fetch_row($npq); if($np['hWILL'] < $mp['hWILL']) { echo "You cannot go backwards in houses!"; } else if ($np['hPRICE'] > $ir['money']) { echo "You do not have enough money to buy the " . $np['hNAME']; } else { $houseprice = ($np['hPRICE']); $db->query("UPDATE users SET money=money-$houseprice,will=0,maxwill={$np['hWILL']} WHERE userid=$userid"); echo "Congrats, you bought the {$np['hNAME']} for £{$np['hPRICE']}!"; } } else if (isset($_GET['sellhouse'])) { $npq = $db->query("SELECT * FROM houses WHERE hWILL={$ir['maxwill']}"); $np = $db->fetch_row($npq); if($ir['maxwill'] == 100) { echo "You already live in the lowest property!"; } else { $houseprice = ($np['hPRICE']); $db->query("UPDATE users SET money=money+$houseprice,will=0,maxwill=100 WHERE userid=$userid"); echo "You sold your {$np['hNAME']} and went back to your wooden hut."; } } else { echo "Your current property: [b]{$mp['hNAME']}[/b] The houses you can buy are listed below. Click a house to buy it. "; if($ir['maxwill'] > 100) { echo "[url='estate.php?sellhouse']Sell Your House[/url] "; } $hq=$db->query("SELECT * FROM houses WHERE hWILL>{$ir['maxwill']} ORDER BY hWILL ASC"); while($r=$db->fetch_row($hq)) { echo "[url='estate.php?property={$r[']{$r['hNAME']}[/url] &nbsp - Cost: £" . number_format($r['hPRICE'], "") . " &nbsp - Will Bar: " . number_format($r['hWILL'], "") . " "; } } $h->endpage(); ?>
  7. Re: Drugs Error How about instead of chucking random errors at us - give us the code 10 lines and and 10 lines down from the error line. (Obviously include the error line!)
  8. Re: ipn_donator help please By "auto-donating" I guess you mean auto crediting? For that you will need to edit your PayPal preferences. I believe it's "sand-box"? Or something like that..
  9. Re: HELP Again - yet another error I have fixed for him..
  10. Re: Voting redemption centre error Or even simpler. Instead of writing the function. Replace mny_stripfmt with mysql_real_escape_string
  11. Re: crons? His crons work fine. It's ej.am! I've fixed this for him..
  12. Re: Slight Problem! Need Help Did you double click it by accident? Sometimes that happens..
  13. Re: Urgent Cron Help Needed Looks like it would work fine :P
  14. Re: Help What version are you running on?
  15. Re: Voting For Crystals This will obviously need to be done and implemented into your PHP but here you go! You will also need a few SQL's..May as well add a full mod on xD Stick this somewhere on your voting.php page (remove the <?php and ?>) <?php include "globals.php"; if($ir['voted'] == 1) { $voted = "<font color=green>Yes</font>"; } else { $voted = "<font color=red>No</font>"; } <table> <tr> <td>Sites</td> <td>Reward</td> <td>Voted Today?</td> <td>Cast Vote</td> </tr> <tr> <td>vote link</td><td>12 crystals</td><td>$voted</td><td>your href to vote</td> </tr> </table> ?>   Very basic but there you go.. EDIT: For got to include the globals file!
  16. Re: advanced warning system???? And to get us back on topic... Joker, don't throw random code at us! Give us around 5-10 lines of code above and below what it is you want. Also - I have fixed this for him. But yea - in future let us know what it is that's causing the error too!
  17. Re: A quick hello and a quick question :) I have worked with all 3 versions of DBS (and other game engines). As far as I'm aware, the lite version is a stripped down v1!
  18. Re: [v2] Stafflist enhanced [v2] Screenshot for you! :) Screenie link thingy-mi-bob here!
  19. Re: new login.php Well let's work together! You give me your ideas and I will try to put them down on code!
  20. Re: [v2]Reset Specific User[v2] That made no sense to me whatsoever! Quote from Nyna: WHAT?!
  21. Re: Main Menu Nyna? One "word" (smily) for ya: :-P
  22. Re: Header.php [New/Imrpoved] I'll add in what I can - but I'm not adding paid mod SQL's..  
  23. Re: Header.php [New/Imrpoved] LOL!! Topic title: Header.php [New/Imrpoved] (spelling 'n' all!) So..um how does new/improved header suggest mainmenu2.php?
  24. Re: [mccode] Personal Detals for v2.0 With a quick skim-read through - that query appears to be correct.
  25. Re: [mccode] jail/hosp shoutbox Nope I was told that in a chat a few yearsago while being a little stupid to get the answer I wanted to hear/read. As Nyna would say: "I was a sneaky bish" :D
×
×
  • Create New...