Jump to content
MakeWebGames

Danny696

Members
  • Posts

    2,632
  • Joined

  • Last visited

  • Days Won

    5

Everything posted by Danny696

  1. I dont use die and i never said anythig about die -.- fool I asked why did you use return.
  2. You should never need more than that ;)
  3. Why would you need more money? :)
  4. $cost = 5; $stat = 'brave'; if($ir['brave'] < 5) { print "You need $cost $stat to escape from jail! > [url='jail.php']Back[/url]"; return; } Why are you using return and why isnt it returning anything :/ And why not do this; $cost = 5; $stat = 'brave'; if($ir[$stat] < $cost) {
  5. Two things about this piece of code: function msecure($var) { if(is_int($var)) { print abs(intval($var)); } else if(is_string($var) print mysql_real_escape_string($var); } else{ print "Warning - Invalid Data"; } }   apart from the fact it wont secure everything, 1) you needa look at functions, use return instead of print 2) use echo instead of print because its faster :)
  6. Nope, it can be fixed from that error line alone ;) Find: UPDATE 'users' SET rates=1 Replace with UPDATE `users` SET `rates` = 1
  7. eregi is depreciated :)
  8. .htaccess has something todo with file security or something << incorect And mabey he's using gramatically correct english. :)
  9. If that doesn't work, try doing; RewriteCond %{HTTP_HOST} ^crimgame\.com?$
  10. Ok, check the query then. (inside the attack file)
  11. You havent set your crons up have you :/
  12. Ok, i suggest you learn baisc PHP before even trying to own a game.
  13. Add my msn (found in sig) and we'll talk :)
  14. They all had the same meaning behind it. Crims question looked rethorical ;)
  15. function msecure($var) { die('this wont work. secure the whole site.'); } OR use this function msecure($var) { if(is_int($var)) { return abs(intval($var)); } else if(is_string($var) return mysql_real_escape_string($var); } else{ return false; } }
  16. OH My old mod :) Invalid html Mod :) How would you like me to impove this mod
  17. Well, its amazing how many people want a free thing. Its not excally the best, (nor the worst), not the most advanced, or fancy login. But because its free people want it ;)
  18. Lol, its perfecly right. Equip a weapon Come back Thanks Bye
  19. Wow, 3 posts thats says the exact same thing.
  20. IF this was paid, im sure only about 2 people would buy it
  21. You have nothing to fight with. Or in other words, nothing equipped -.-
  22. echo bbCode($shopdata['shopDESCRIPTION']) "<table width='90%' cellspacing='1' cellpadding='1'> You sure ;) Should be echo bbCode($shopdata['shopDESCRIPTION'])."<table width='90%' cellspacing='1' cellpadding='1'>
  23. I think he means mysql_result ;)
  24. Try this: <?php include "globals.php"; if($ir['money'] < 500000){die("You don't have enough money. You need \$500,000."); } if($ir['gang']){die ("You're already in a gang!"); } if($_POST['submit']){$name=htmlspecialchars($_POST['name']); $desc=htmlspecialchars($_POST['desc']); $db->query("INSERT INTO gangs VALUES('','$name','$desc','','',0,0,100,$userid,$userid,5,0,0,'','','','')"); $i=$db->insert_id(); $db->query("UPDATE users SET gang=$i,money=money-500000 where userid=$userid"); print "Gang created!"; }else { print "<h3> Create A Gang </h3><form action='creategang.php' method='post'><input type='hidden' name='submit' value='1' />Name:<input type='text' name='name' /> Description: <textarea name='desc' cols='40' rows='7'></textarea> <input type='submit' value='Create Gang for \$500,000' /></form>"; } $h->endpage(); ?>
  25. That shouldnt be needed because activated is an int
×
×
  • Create New...