Jump to content
MakeWebGames

tittlemouse

Members
  • Posts

    303
  • Joined

  • Last visited

    Never

Everything posted by tittlemouse

  1. Re: HELP lol you dont even just have to say anything just use the diagram lol
  2. Re: tune.php help i still get an error on line 9
  3. im trying to get this v2 code to wrok can anyone help thanks here is the code <?php include "globals.php"; print "<h3>Tuning Shop</h3><hr /> > [url='garage.php']Back To Garage[/url]<hr />"; if(!$_GET['id']) { die("Invalid Usage"); } $q=mysql_query("SELECT cp.*,ct.* FROM cars_playercars cp LEFT JOIN cars_types ct ON ct.carID=cp.cpcCAR WHERE cp.cpcID={$_GET['id']} AND cp.cpcPLAYER=$userid", $c); if(mysql_num_rows($q) == 0) { die("Invalid Car"); } $r=mysql_fetch_array($q); $cost['acc']=$r['carACC']*power($r['cpcACCLV']+1,4)*($r['cpcACCLV']*$r['carACC']*10); $cost['han']=$r['carHAN']*power($r['cpcHANLV']+1,4)*($r['cpcHANLV']*$r['carHAN']*10); $cost['spd']=$r['carSPD']*power($r['cpcSPDLV']+1,4)*($r['cpcSPDLV']*$r['carSPD']*10); $cost['shd']=$r['carSHD']*power($r['cpcSHDLV']+1,4)*($r['cpcSHDLV']*$r['carSHD']*10); if($_GET['buy']) { if($_GET['buy'] != "acc" && $_GET['buy'] != "han" && $_GET['buy'] != "spd" && $_GET['buy'] != "shd") { die("Abusers suck."); } $upgr_cost=$cost[$_GET['buy']]; if($ir['money'] < $upgr_cost) { die("You don't have enough money to tune this stat."); } mysql_query("UPDATE users SET money=money-{$upgr_cost} WHERE userid=$userid", $c); $stat="cpc".strtoupper($_GET['buy'])."LV"; mysql_query("UPDATE cars_playercars SET $stat=$stat+1 WHERE cpcID={$_GET['id']}", $c); print "Car tuned! > [url='tune.php?id={$_GET[']Tune some more[/url]"; } else { foreach($cost as $k => $v) { $costf[$k]='$'.number_format($v); } $acc=$r['cpcACCLV']*$r['carACC']; $han=$r['cpcHANLV']*$r['carHAN']; $spd=$r['cpcSPDLV']*$r['carSPD']; $shd=$r['cpcSHDLV']*$r['carSHD']; print "Current Stats for your {$r['carNAME']} <table width='90%'><tr> <th>Stat</th> <th>Amount</th> <th>Cost To Tune</th> <th>Tune</th></tr> <tr> <td>Acceleration</td> <td>Lv{$r['cpcACCLV']} ($acc)</td> <td>{$costf['acc']}</td> <td>[url='tune.php?id={$_GET[']Tune[/url]</td></tr> <tr><td>Speed</td> <td>Lv{$r['cpcSPDLV']} ($spd)</td> <td>{$costf['spd']}</td> <td>[url='tune.php?id={$_GET[']Tune[/url]</td></tr> <tr> <td>Handling</td> <td>Lv{$r['cpcHANLV']} ($han)</td> <td>{$costf['han']}</td> <td>[url='tune.php?id={$_GET[']Tune[/url]</td></tr> <tr> <td>Shield</td> <td>Lv{$r['cpcSHDLV']} ($shd)</td> <td>{$costf['shd']}</td> <td>[url='tune.php?id={$_GET[']Tune[/url]</td></tr> </table>"; } $h->endpage(); ?> and here is the error i get Fatal error: Call to undefined function power() in /home/avfc1993/public_html/tune.php on line 9
  4. Re: V2 Escape from Jail mod i had trouble adding it into my 5 min cron. can someone post a 5 min cron code with it in thanks
  5. Re: Free Loan Shark System bristol rovers vs west brom fa cup 1/4 final the other 3 teams through are cardiff city barnsley and portsmouth
  6. Re: Free Loan Shark System no i just could not be bothered to read it lol. as im trying to watch football at the same time
  7. Re: Search For Gang nice code but 1 error it shows the gangs 2 times and does anyoen have the v2 gang pics mod
  8. Re: Free Loan Shark System hi this code dosent work it says error on line 89
  9. Re: [mccode] Streets for v2.0 hi can you post the page that tells the item name so i can use it thanks.
  10. Re: V2 cars mod it happens at random times
  11. Re: V2 cars mod yes but on this one during a race you can lose even if you have higher stats than your oppoment eg you have crashed
  12. Re: V2 cars mod i did code this i just did it
  13. Re: V2 cars mod hi here is some info you can race other users by buying cars from a shop yes i did code it screenshots
  14. i am selling a v2 cars mod for $15 email me [email protected] if you want to buy
  15. Re: [V1] Number Plate [$5] i might buy this next week when my paypal is working
  16. Re: [v1] Issue a Threat [FREE] here it is for v2 <?php //-----------------------------------------------------------------------// // Issue A Death Threat // // This is free code and can be modified or redistributed. // // Please do not try and sell this mod, it is meant to be FREE. // // [url]http://dreamburst.com[/url] - [url]http://criminalmadness.net[/url] // // File Name: threat.php // //-----------------------------------------------------------------------// include "globals.php"; $_POST['ID'] = abs((int) $_POST['ID']); $_GET['ID'] = abs((int) $_GET['ID']); if($_POST['ID']) { $q=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid={$_POST['ID']}",$c); $r=mysql_fetch_array($q); $chance = rand(1,100); //------------------------------------------------------------------// // DON'T EDIT ABOVE THIS LINE IF YOU DON'T KNOW WHAT YOU'RE DOING!! // //------------------------------------------------------------------// //------------------------------------------------------------------------// //Change the next line to increase / decrease the success rate of a threat// // The higher the number the better chance a player has to be successful // // eg. If the number is 60 then the player has a 59% chance of succeeding // //------------------------------------------------------------------------// if($chance < 50) { //Change the following line to control how much brave someone will lose for failing a death threat// $div = rand(1,3); $brave=$r['maxbrave']/$div; mysql_query("UPDATE users SET brave=0 WHERE userid=$userid",$c); //This is the event the target will recieve if the threat is failed// event_add($r['userid'],"[url='viewuser.php?u=$userid']{$ir['username']}[/url] pulled a gun and threatened your life, but your friends stepped in and scared them off.",$c); //The following is the fail text// print "[b]1.[/b] You approach {$r['username']} with your weapon in hand. [b]2.[/b] You pull them into an alley and issue a death threat.... [b]3.[/b] Out of the corner of your eye you see {$r['username']}s friends enter the alley way. [b]4.[/b] Scared that they will beat you senceless you run away.... [b]Result:[/b] <font color='red'>Failed - You lose $brave bravery.</font> "; } else { //This is how much brave it will cost to perform a successful death threat// $brave=$ir['level']*1; mysql_query("UPDATE users SET brave=brave-$brave WHERE userid=$userid",$c); mysql_query("UPDATE users SET brave=0 WHERE userid={$r['userid']}",$c); //This is the event the target will recieve if the threat is successful// event_add($r['userid'],"[url='viewuser.php?u=$userid']{$ir['username']}[/url] put their gun to your head and threatened your life, causing you to lose all your brave.",$c); //The following is the success text// print "[b]1.[/b] You approach {$r['username']} with your weapon in hand. [b]2.[/b] You pull them into an alley and wave it in their face after issueing a threat. [b]3.[/b] {$r['username']} breaks out in a sweat and starts turning white. [b]4.[/b] Scared to death they turn and run away not to look back. [b]Result:[/b] <font color='green'>Succeeded - {$r['username']} loses all their brave.</font> "; } } else { $q=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid={$_GET['ID']}",$c); if(mysql_num_rows($q) == 0) { //Error message// print "[b]<font color='red'>ERROR:[/b]</font> Invalid User ID. [url='index.php']-Go Home[/url]"; } else { $r=mysql_fetch_array($q); //This is how much brave it will cost to issue a threat (printed on the confirm page)// $brave=$ir['level']*1; //This is the text printed on the confirm page// if($ir['brave'] >= $ir['maxbrave']) { print "You are about to issue a death threat to [b]{$r['username']}[/b], this will cost you $brave brave. <form action='threat.php' method='post'><input type='hidden' name='ID' value='{$_GET['ID']}' /><input type='submit' value='Issue Death Threat' /></form>"; } else { //Error Message// print "[b]<font color='red'>ERROR:</font>[/b] You must have maximum bravery to use this feature. [url='index.php']-Go Home[/url]"; } } } $h->endpage(); ?>
  17. Re: Casino with slots [V2] i have uploaded the pics in a file called slots
  18. Re: [V1] Number Plate [$5] i think this would be a good idea if you could put this into a car mod
  19. Re: Casino with slots [V2] i installed it and pics still dont show. and also it takes money not tokens
  20. Re: Money,crystals cap how can i edit it in my staff panel on v2 so i can add more than 2,147,483,647
  21. Re: Donator's Bank[MCV2] i have lol thats the 1st thing i did
  22. Re: Donator's Bank[MCV2] theres nothing to edit there lol
  23. Re: [v1]Virus Mod[v1] i would convert it myself but i dont have the time at the moment as i am trying to do some school homework.
  24. Re: [v1]Virus Mod[v1] v2 plz thanks
  25. Re: Donator's Bank[MCV2] Congratulations, you bought a bank account for $10,000! Start using my accountQUERY ERROR: Unknown column 'donatormoney' in 'field list' Query was UPDATE users SET money=money-10000,donatormoney=0 WHERE userid=1
×
×
  • Create New...