
gulley
Members-
Posts
51 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by gulley
-
Re: [mccode V2] Chat Mod NEW Try The Line Above ! Send it to me Or Reply To The Topic Thanks Gulley There Is No Error In That Code $blinki=$_SERVER['SCRIPT_NAME'];
-
Re: Need Help With Items And Create Or Error :-( What do you mean Edit things in PHP-Admin? Or Game Staff Panel?
-
:-( I Keep Getting Them To Errors And No Will Help Me Fix Them :( Will you help Me Fix Them Error One Is In Items When I Try To Use Med Refils Or E Refills Or Packs I Get QUERY ERROR: You have an error in your SQL syntax; c heck the manual that corresponds to your MySQL server version for the right syntax to use near '= '0' WHERE userid=1' at line 1 Query was UPDATE `users` SET = '0' WHERE userid=1 Error two Is when i try to create a new user (e.g) Bot QUERY ERROR: Column count doesn't match value count at row 1 Query was INSERT INTO users (username, login_name, userpass, level, money, shells, crystals, turns, donatordays, user_level, energy, maxenergy, will, maxwill, brave, maxbrave, hp, maxhp, location, gender, signedup, email, bankmoney) VALUES( 'Bot ', 'Bot ', md5('Bot') , 100, 100, 0, 0, 0, 210, 210, 100, 100, 203, 203, 5050, 5050, 1, 'Male', unix_timestamp(), 'Bot', -1) If There Is Anyone Out There Is Willing to Help ME :-D My Email Is [email protected] Owner Of www.pimpbattles.com Thanks
-
Re: Item Error what code for i have to put in there ? and where do i put and how do i put it lol
-
And my Other Problem is When i try to us an item i get this QUERY ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '= '0' WHERE userid=1' at line 1 Query was UPDATE `users` SET = '0' WHERE userid=1 Can You mail me if you can help me on [email protected]
-
I Dont No What is Image means lol can any help me its under Gang Pic
-
Re: [mccode v2] Battletent Fix Mine Only gose up to bot 5 but i have like bot 9 how would i make it like to bot 100
-
What do you think your doing? Inserting decimal integers is not tolerated. i Get In Crystal Market And , Some Times In CyberBank And Bank :cry: :cry: If there is any one out there can tell me how to remove it thanks :-D :-D
-
Re: [mccode v2] Jail All in one Fixed <?php include "globals.php"; if($ir['hospital']) { die("This page cannot be accessed while in hospital."); } if($_GET['action']=="escape") { if($ir['jail']==0) { die("You arent in jail! > [url='jail.php']Back[/url]"); } $cost=5; $stat='brave'; if($ir['brave']<5) { die("You need $cost $stat to escape from jail! > [url='jail.php']Back[/url]"); } $db->query("update users set $stat=$stat-$cost where userid=$userid"); if(rand(1,100) <= 50) { print "You successfully broke out of the {$set['game_name']} Jail! > [url='jail.php']Back[/url]"; $db->query("UPDATE users SET jail=0 WHERE userid=$userid"); die(""); } else { $jailtime=(int) rand(1,30); print "You were caught attempting to break out of the {$set['game_name']} Jail. The officers beat you for a while and added $jailtime minutes to your sentence! > [url='jail.php']Back[/url]"; $db->query("UPDATE users SET jail=jail+$jailtime WHERE userid=$userid"); $db->query("UPDATE users SET busted=busted+1 WHERE userid=$userid"); $db->query("UPDATE users SET jail_reason='Caught attempting to escape' WHERE userid=$userid"); die(""); } } if($_GET['action']=="bail") { if($ir['jail']) { die("You cannot bail out people while in jail! > [url='jail.php']Back[/url]"); } $_GET['ID']=abs((int) $_GET['ID']); $r=$db->fetch_row($db->query("SELECT * FROM users WHERE userid={$_GET['ID']}")); if(!$r['userid']) { die("Invalid user"); } if(!$r['jail']) { die("That user is not in jail! > [url='jail.php']Back[/url]"); } $cost=$r['level']*2000; $cf=number_format($cost); if($ir['money'] < $cost) { die("Sorry, you do not have enough money to bail out {$r['username']}. You need \$$cf. > [url='jail.php']Back[/url]"); } print "You successfully bailed {$r['username']} out of jail for \$$cf. > [url='jail.php']Back[/url]"; $db->query("UPDATE users SET busts=bails+1 WHERE userid=$userid"); $db->query("UPDATE users SET money=money-{$cost} WHERE userid=$userid"); $db->query("UPDATE users SET jail=0 WHERE userid={$r['userid']}"); event_add($r['userid'], "[url='viewuser.php?u={$ir[']{$ir['username']}[/url] bailed you out of jail.", $c); } if($_GET['action']=="bust") { if($ir['energy'] < 10); { die("Sorry, it costs 10 energy to bust someone. You only have {$ir['energy']} energy. Come back later."); } if($ir['jail']) { die("You cannot bust out people while in jail."); } $_GET['ID']=abs((int) $_GET['ID']); $r=$db->fetch_row($db->query("SELECT * FROM users WHERE userid={$_GET['ID']}")); if(!$r['userid']) { die("Invalid user"); } if(!$r['jail']) { die("That user is not in jail!"); } $mult=$r['level']*$r['level']; $chance=min(($ir['crimexp']/$mult)*50+1, 95); if(rand(1,100) < $chance) { $gain=$r['level']*5; print "You successfully busted {$r['username']} out of jail. > [url='jail.php']Back[/url]"; $db->query("UPDATE users SET crimexp=crimexp+{$gain} WHERE userid=$userid"); $db->query("UPDATE users SET jail=0 WHERE userid={$r['userid']}"); event_add($r['userid'], "[url='viewuser.php?u={$ir[']{$ir['username']}[/url] busted you out of jail.", $c); } else { print "While trying to bust out your friend, a guard spotted you and dragged you into jail yourself. Unlucky! > [url='jail.php']Back[/url]"; $time=min($mult, 100); $db->query("UPDATE users SET jail=$time, jail_reason='Caught trying to bust out {$r['username']}' WHERE userid=$userid"); event_add($r['userid'], "[url='viewuser.php?u={$ir[']{$ir['username']}[/url] was caught trying to bust you out of jail.", $c); } } print "<h3>{$set['game_name']} Jail</h3> "; if($ir['jail']) { print "[url='jail.php?action=escape']Escape[/url] | [url='jail.php?action=court']<strike>Goto Court</strike>[/url]"; } print " <table width='100%' class=\"table\" border=\"0\" cellspacing=\"1\"><tr bgcolor=gray><th>Name</th> <th>Level</th> <th>Time</th><th>Reason</th> <th>Actions</th></tr>"; $q=$db->query("SELECT u.*,c.* FROM users u LEFT JOIN gangs c ON u.gang=c.gangID WHERE u.jail > 0 ORDER BY u.jail DESC"); while($r=$db->fetch_row($q)) { print "\n<tr><td>{$r['gangPREFIX']} [url='viewuser.php?u={$r[']{$r['username']}[/url] [{$r['userid']}]</td><td>{$r['level']}</td><td>{$r['jail']} minutes</td><td>{$r['jail_reason']}</td> <td>[[url='jail.php?action=bust&?ID={$r[']Bust[/url]][[url='jail.php?action=bail&ID={$r[']Bail[/url]]</td></tr>"; } print "</table>"; if($ir['jail']>0 || $ir['user_level']==2) { include_once("jailchat.php"); } $h->endpage(); ?>
-
Re: Need Help I Have A Prob Do I Remove That?
-
:-D :-D :-D :-D :-D :-DParse error: syntax error, unexpected T_STRING, expecting T_VARIABLE or '$' in /home/pyro/public_html/pimp/cyberbank.php on line 81 What Do I Need To Do To Remove That? <?php include "globals.php"; print "<h3>Cyber Bank</h3>"; if($ir['cybermoney']>-1) { switch($_GET['action']) { case "deposit": deposit(); break; case "withdraw": withdraw(); break; default: index(); break; } } else { if(isset($_GET['buy'])) { if($ir['money']>9999999) { print "Congratulations, you bought a bank account for \$10,000,000! [url='cyberbank.php']Start using my account[/url]"; $db->query("UPDATE users SET money=money-10000000,cybermoney=0 WHERE userid=$userid"); } else { print "You do not have enough money to open an account. [url='explore.php']Back to town...[/url]"; } } else { print "Open a bank account today, just \$10,000,000! [url='cyberbank.php?buy']> Yes, sign me up![/url]"; } } function index() { global $db,$ir,$c,$userid,$h; print "\n[b]You currently have \${$ir['cybermoney']} in the bank.[/b] At the end of each day, your bank balance will go up by 7%. <table width='75%' border='2'> <tr> <td width='50%'>[b]Deposit Money[/b] It will cost you 15% of the money you deposit, rounded up. The maximum fee is \$1,500,000.<form action='cyberbank.php?action=deposit' method='post'> Amount: <input type='text' name='deposit' value='{$ir['money']}' /> <input type='submit' value='Deposit' /></form></td> <td> [b]Withdraw Money[/b] It will cost you 7.5% of the money you withdraw, rounded up. The maximum fee is \$750,000.<form action='cyberbank.php?action=withdraw' method='post'> Amount: <input type='text' name='withdraw' value='{$ir['cybermoney']}' /> <input type='submit' value='Withdraw' /></form></td> </tr> </table>"; } function deposit() { global $db,$ir,$c,$userid,$h; $_POST['deposit']=abs((float) $_POST['deposit']); if($_POST['deposit'] > $ir['money']) { print "You do not have enough money to deposit this amount."; } else { $fee=ceil($_POST['deposit']*15/100); if($fee > 1500000) { $fee=1500000; } $gain=$_POST['deposit']-$fee; $ir['cybermoney']+=$gain; $db->query("UPDATE users SET cybermoney=cybermoney+$gain, money=money-{$_POST['deposit']} where userid=$userid"); print "You hand over \${$_POST['deposit']} to be deposited, after the fee is taken (\$$fee), \$$gain is added to your account. [b]You now have \${$ir['cybermoney']} in the Cyber Bank.[/b] [url='cyberbank.php']> Back[/url]"; } } function withdraw() { global db,$ir,$c,$userid,$h; $_POST['withdraw']=abs((float) $_POST['withdraw']); if($_POST['withdraw'] > $ir['cybermoney']) { print "You do not have enough banked money to withdraw this amount."; } else { $fee=ceil($_POST['withdraw']*75/1000); if($fee > 750000) { $fee=750000; } $gain=$_POST['withdraw']-$fee; $ir['cybermoney']-=$gain; $db->query("UPDATE users SET cybermoney=cybermoney-$gain, money=money+$gain where userid=$userid"); print "You ask to withdraw $gain, the teller hands it over after she takes the bank fees. [b]You now have \${$ir['cybermoney']} in the Cyber Bank.[/b] [url='cyberbank.php']> Back[/url]"; } } $h->endpage(); ?> thanks :-D
-
Re: Big Prob Help Please i think its v2 its this game www.chavster.com
-
go a big problem how do i make this go away? Fatal error: Call to undefined method headers::endpage() in /home/chavster/public_html/city.php on line 138
-
Re: Bodyguard - My first attempt to make my first mod Add To Index And Header IF You Like if($ir['bguard'] >0) { print "<font color='yellow'>[b]NOTE:[/b]</font> Your Bodyguard is protecting you for {$ir['bguard']} more minutes. "; } Also Somthing think i make for this mod is this it mite help i dont no :-D :-D Add this to any file that you want blocked when a user has hired a bodyguard $hosp = rand(100,250); if($r['bguard'] >0) { mysql_query("UPDATE users SET hp=0, hospital=hospital+$hosp, hospreason='Beaten Severely By Someones Personal Bodyguard' WHERE userid=$userid",$c); die("<center>[b]<font color='#FFFF00'>Holy Shit!</font>[/b] You Just Got Your Ass Kicked By The Bodygaurd!! [url='index.php']>Home[/url]</center>"); } Thanks
-
Re: Hey with creating this script ? Added Now What do i put on viewuser?
-
Re: Hey with creating this script ? In The SQL OR PUBLIC_HTML File?
-
Re: Hey with creating this script ? YEs But What do i add to viewuser lol
-
Re: I Have a Problem :( Also Register has that same but there is somehting above it that is register Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/pyro/public_html/pimp/register.php on line 24 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/pyro/public_html/pimp/register.php:24) in /home/pyro/public_html/pimp/register.php on line 54
-
Re: I Have a Problem :( ok :D thanks
-
Re: I Have a Problem :( no i own www.pimpbattles.com
-
What dose that mean , hwo do i make it go a way ?? Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/pyro/public_html/pimp/login.php:2) in /home/pyro/public_html/pimp/login.php on line 3
-
Re: [v1]Attack Stats FREE[v1] Could Any one tell me what i have dont wrong? ..Thanks .xX
-
Re: [v1]Attack Stats FREE[v1] what has happened? QUERY ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE userid=1' at line 1 Query was UPDATE users SET mmugged=mmugged+ WHERE userid=1
-
Re: [v1]Attack Stats FREE[v1] How do you add it to index what do you put in to get the zeros up?
-
New Youtube Thing Turn Your Favorite Youtube In to BBCode So You Can Put In Your Blog , Profile Sig , :D Work For All Mccodes you find the file at YouTube_BBCode_v2.3.zip Thanks Gulley Please Reply If Works , Because I Made It Thanks """""""""HOPE IT WORK SORRY IF IT DOSE NOT , YOU WILL HAVE TO TRY FIX THE PROB THANKS """""""""""