Jump to content
MakeWebGames

castle

Members
  • Posts

    97
  • Joined

  • Last visited

    Never

Everything posted by castle

  1. Re: Donator and Non-Donator Lottery [V2] my fault, i did not pay attention to the link in xplore :oops:
  2. Re: Donator and Non-Donator Lottery [V2] what about the non-donators?
  3. Re: [mccodes v2]New and improved inventory code sources for free! this is good...will use for sure
  4. Re: [mccode v2] Simple Marriage very nice and easy :-D
  5. Re: [mccodes V2] Bounty Hunter Game i might just need to purge the bounty hunter database, and reinstall...
  6. Re: [mccodes V2] Bounty Hunter Game instead of a blank screen I now get a screen that says: BOUNTY HUNTER. lol this will be a great mod once it's fixed
  7. Re: [uPGRADE] V2 streets.php includes image + ability to fight NPCS looks amazing
  8. Re: [mccodes V2] Bounty Hunter Game i am getting this blank screen as well
  9. Re: [V2] Race Mod & Status Mod on Page 2 [V2] what if in the gym the races gained bonus, such as the pimp would gain a bonus in labour?
  10. Re: create gang thank you justice and tonka, i did change the table...i feel stupid now :-( :mrgreen:
  11. Re: create gang no, that would produce an error, i am getting no errors
  12. Re: create gang don't think so but i will check
  13. suddenly players can not create their own gangs. i did not change anything as far as i know <?php 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']); $cm=money_formatter($ir['points'],''); $lv=date('F j, Y, g:i a',$ir['laston']); $h->userdata($ir,$lv,$fm,$cm); $h->menuarea(); 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']); mysql_query("INSERT INTO gangs VALUES('','$name','$desc','','',0,0,100,$userid,$userid,5,0,0,'')",$c); $i=mysql_insert_id($c); mysql_query("UPDATE users SET gang=$i,money=money-500000 where userid=$userid",$c); 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(); ?>
×
×
  • Create New...