Jump to content
MakeWebGames

03laceys

Members
  • Posts

    863
  • Joined

  • Last visited

Everything posted by 03laceys

  1. Re: [mccode] Level Upgrade mod sorry what is this mod like if you have 100% exp you have to click upgrade to level up?
  2. Re: [non-mccode] Hi Lo ok i used oxidation's code and it was giving you money when you was wrong and saying you was right so i sorted that out then i decided to make it if your wrong you lose a little bit of money there is just 1 problem it says like your money £2450 but does not actually give it to you because you actully have £4565353 but it did not ad or take away any thing fromt that. Any help code below. <?php include "globals.php"; session_start(); $bet = 200; $money = $_SESSION['money']; $file=str_replace("/", "", $_SERVER['PHP_SELF']); if ($_GET['money'] == "true"){ echo "Your money: $ $money ";} $numb = rand(1,10); echo "<h1>$numb</h1> next number higher or lower? <form action='$file?money=true' method=post><select name=so><option value=1>HIGH</option><option value=2>LOW</option></select> <input type=submit></form>"; if ($_POST){ $so = $_POST['so']; $nextnumb = rand(1,10); if ($nextnumb > $numb && $so==1) { $_SESSION['money']-=30; exit("Wrong"); } if ($nextnumb < $numb && $so==2){ $_SESSION['money']-=30; exit("Wrong <meta http-equiv='refresh' content='5;url=hilo.php' />");} else { $_SESSION['money']+=100; print "Well Done <meta http-equiv='refresh' content='5;url=hilo.php' />";} } ?>
  3. Re: [mccode] Personal Detals for v2.0 also you have to add to the top a bit cant remember what lol soz.
  4. Re: [mccode] Mining mod zaver shhh ok i am a noob but i am here to get help and learn... your just not happy because i didnt buy them mods of you no because many people said they wernt even yours so i went else where. so dnt start saying i cant i code i no i cant but i am learning slowly yes but i am! sorry that is as polite as i can put that.
  5. Re: [mccode] Register Page bump
  6. Re: [mccode] Lucky Dip hi when i click search i get this You only have one go per day for the lucky dip. come back another day QUERY ERROR: Unknown column 'gamegoes' in 'field list' Query was update users set gamegoes=gamegoes-1 where userid=1 Any ideas?
  7. Re: [mccode] Mining mod hi ya i added this mod but i get this code Warning: Division by zero in /home/badboys/public_html/header.php on line 139 Warning: Division by zero in /home/badboys/public_html/header.php on line 140 any help?
  8. Re: [mccode] Poker Script for v1 i tried looking to convert to v2 but it does not have $;menuarea or what eva it is lol help please.
  9. Re: HELP [gym] im dno lol try this $gain+=rand(1,2)/rand(400,800)*rand(400,800)*(($ir['will']+100)/200);
  10. Re: [mccode] mailbox with smilies hey mrswhodini send me ur mailbox.php
  11. Re: [Free v1] Close page system add it under include globals i think
  12. Re: [Free v1] Close page system this should work with v2 it might need a cople of bits changed but if you look in the tutorials it has a post telling you how 2 convet v1 to v2 shold be easy enough
  13. Re: Converting Problems hi ya m8 add me on msn [email protected] and i will sort it m8.
  14. Re: Free Multiple Event Deleter - FREE! number 1 i am a bloke guys lol please remember that lol number 2 i only said i added this to my game and it sorted out the events saying you have some when you dont number 3 whats this about the bandwih thing and having something wrong with the code please help the code works but what are you saying is wrong with it thank you all for helping.
  15. Re: war error wrong place o well lol ummm i dno m8 soz lol hope u get help
  16. Re: Free Multiple Event Deleter - FREE! ty kyle works great +1 for u
  17. Re: Free Multiple Event Deleter - FREE! i need help i have this events dealer and it gets stuck when i delete a event is still says i have 1 what do i need to edit where do i need to edit it i got told to do summin b4 but that aint even in my script im useing v2 help pleaseee
  18. Re: Number format i also want to do this on my game where would i add that?
  19. Re: [mccode] mailbox with smilies hey younggold its all sorted 4 ya m8 wanna no how to add em ask on msn yh
  20. Re: Free Multiple Event Deleter - FREE! soory wrg forum but i still have prob with the events
  21. Re: Help with header.php r u using v1 or v2
  22. Re: Free Multiple Event Deleter - FREE! oxidati0n please help when i delete the event it still says the event is there im useing v2 thank you
  23. Re: Help with header.php try this   <?php class headers { function startheaders() { global $ir, $set; echo <<<EOF <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>{$set['game_name']}</title> <style type="text/css"> <!-- body { background-color: #000000; margin-top: 0px;I margin-bottom: 0px; font-family:calibri, helvetica, arial, geneva, sans-serif;font-size:12px;color: black; scrollbar-base-color: #005B70; scrollbar-arrow-color: #F3960B; scrollbar-DarkShadow-Color: #000000; } a:visited,a:active,a:hover,a:link { color: black;text-decoration: none; } table,tr,td { font-family:helvetica, arial, geneva, sans-serif;font-size: 12px; } img { border:none; } textarea { font-family:helvetica, arial, geneva, sans-serif;font-size:12px;color: black; } .table2 { } .lgrad { background-image:url(lgrad.jpg); background-repeat:repeat-y; width:19px; } .linegrad { background-image:url(linegrad.PNG); background-repeat:repeat-y; background-align: center; width:2px; } .rgrad { background-image:url(rgrad.jpg); background-repeat:repeat-y; width:19px; } .dgrad { background-image:url(dgrad.jpg); background-repeat:repeat-x; height:38px; } .dgradl { background-image:url(dgradl.jpg); background-repeat:no-repeat; height:38px; width:38px; } .dgradr { background-image:url(dgradr.jpg); background-repeat:no-repeat; height:38px; width:38px; } .center { width:932px; background-color:#C3C3C3; vertical-align:top; text-align:center; } .table { background-color:#000000; } .table3 { background-color:#000000; } .table td { background-color:#DEDEDE; height:22px; } .table3 td { background-color:#CCCCCC; } td .alt { background-color:#EEEEEE; height:22px; } td .h { background-image:url(tablehgrad.png); background-repeat:repeat-x; font-weight: bold; background-color: #D6D6D6; } .table th { background-image:url(tablehgrad.png); background-repeat:repeat-x; font-weight: bold; background-color: #D6D6D6; } --> </style></head> <body> <center> <table width="970" border="0" cellpadding="0" cellspacing="0" class="table2"> <tr> <td class="lgrad"></td> <td class="center"> EOF; } function userdata($ir,$lv,$fm,$cm,$dosessh=1) { global $db,$c,$userid, $set; $IP = ($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR']; $db->query("UPDATE users SET laston=unix_timestamp(),lastip='$IP' WHERE userid=$userid"); if(!$ir['email']) { global $domain; die ("<body>Your account may be broken. Please mail help@{$domain} stating your username and player ID."); } if($dosessh && ($_SESSION['attacking'] || $ir['attacking'])) { print "You Run Home And Lock Your Doors"; $db->query("UPDATE users SET exp=0,attacking=0 WHERE userid=$userid"); $_SESSION['attacking']=0; } $enperc=(int) ($ir['energy']/$ir['maxenergy']*100); $wiperc=(int) ($ir['will']/$ir['maxwill']*100); $experc=(int) ( $ir['exp']/$ir['exp_needed']*100); $brperc=(int) ($ir['brave']/$ir['maxbrave']*100); $hpperc=(int) ($ir['hp']/$ir['maxhp']*100); $enopp=100-$enperc; $wiopp=100-$wiperc; $exopp=100-$experc; $bropp=100-$brperc; $hpopp=100-$hpperc; $d=""; $u=$ir['username']; if($ir['donatordays']) { $u = "<font color=red>{$ir['username']}</font>";$d="[img=donate.gif]"; } $gn=""; global $staffpage; $bgcolor = 'C3C3C3'; print <<<OUT print "<table width='100%' bgcolor='#C3C3C3' bordercolor='#000000' border='1'> <tr> <th> [b]Name:[/b] $gn{$u} [{$ir['userid']}] $d [b]Money:[/b] {$fm} [b]Level:[/b] {$ir['level']} [b]Points:[/b] {$ir['crystals']} [url='voting.php'][Earn][/url] </td> <th width='600px' align='center'>"; if ($ir['jail'] >0) { print "[img=jail.jpg] "; } else { print "[img=ICImage.JPG] "; } { if ($ir['hospital'] >0) { print "[img=hospital.jpg] "; } { else { print "[img=ICImage.JPG] "; } } print "</th>"; <th> [b]Energy:[/b] {$enperc}% <img src=greenbar.png width=$enperc height=10><img src=redbar.png width=$enopp height=10> [b]Happy:[/b] {$wiperc}% <img src=greenbar.png width=$wiperc height=10><img src=redbar.png width=$wiopp height=10> [b]Nerve:[/b] {$ir['brave']}/{$ir['maxbrave']} <img src=greenbar.png width=$brperc height=10><img src=redbar.png width=$bropp height=10> [b]Health:[/b] {$hpperc}% <img src=greenbar.png width=$hpperc height=10><img src=redbar.png width=$hpopp height=10> </th> </tr> </table> <table width='100%' bgcolor='#999999' bordercolor='#000000' border='1'> <tr> <td colspan='2' class='h' align='center'>[url='donator.php']Donate To Infernal City Here[/url]</td> <td colspan='2' class='h' align='center'>[url='voting.php']Vote For Infernal City Here[/url]</td> </tr> </table> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="20%" bgcolor="#$bgcolor" valign="top"> <hr /> OUT; if($ir['fedjail']) { $q=$db->query("SELECT * FROM fedjail WHERE fed_userid=$userid"); $r=$db->fetch_row($q); die("[b]<font color=red size=+1>You have been put in the {$set['game_name']} Federal Jail for {$r['fed_days']} day(s). Reason: {$r['fed_reason']}</font>[/b]</body></html>"); } if(file_exists('ipbans/'.$IP)) { die("[b]<font color=red size=+1>Your IP has been banned from {$set['game_name']}, there is no way around this.</font>[/b]</body></html>"); } } function menuarea() { include "mainmenu.php"; global $ir,$c; $bgcolor = 'C3C3C3'; print '</td><td width="2" class="linegrad" bgcolor="#'.$bgcolor.'"> </td><td width="80%" bgcolor="#'.$bgcolor.'" valign="top"> <center>'; if($ir['hospital']) { print "[b]NB:[/b] You are currently in hospital for {$ir['hospital']} minutes. "; } if($ir['jail']) { print "[b]NB:[/b] You are currently in jail for {$ir['jail']} minutes. "; } print ""; } function smenuarea() { include "smenu.php"; global $ir,$c; $bgcolor = 'C3C3C3'; print '</td><td width="2" class="linegrad" bgcolor="#'.$bgcolor.'"> </td><td width="80%" bgcolor="#'.$bgcolor.'" valign="top"><center>'; } function endpage() { global $db; print <<<OUT </center> </td> </tr> </table></td> <td class="rgrad"></td> </tr> <tr> <td colspan="3"> <table cellpadding="0" cellspacing="0" border="0" width="100%"> <tr> <td class="dgradl"> </td> <td class="dgrad"> </td> <td class="dgradr"> </td> </tr> </table> </td> </tr> </table> {$db->num_queries} queries</body> </html> OUT; } } ?>
  24. Re: Help with header.php here if ($ir['jail'] >0) { print "[img=jail.jpg] "; } else { print "[img=ICImage.JPG] "; } { if ($ir['hospital'] >0) { print "[img=hospital.jpg] "; } { else { print "[img=ICImage.JPG] "; } } print "</th>";
  25. Re: Free Multiple Event Deleter - FREE! Thank you zaver but it still doing it :(
×
×
  • Create New...