Jump to content
MakeWebGames

-CrAzY-

Members
  • Posts

    150
  • Joined

  • Last visited

    Never

Everything posted by -CrAzY-

  1. Re: Admin.php Modification - Why Isn't It Working??? if($ir['hp'] == 0) { <meta http-equiv='refresh' content='0; url=dead.php'> exit; } = Parse error: syntax error, unexpected '<' in /home/imgame/public_html/header.php on line 80
  2. Re: Admin.php Modification - Why Isn't It Working??? thanks very much +1, im not that good at Sql, i copyed query in admin.php and tryed to edit it, thanks! could you help me with this problem:   i added this to header.php: if($ir['hp'] == 0) { header("Location: dead.php"); exit; } because you could not 'Die' earlier, but when someone who is dead ( hp is 0) logs on it says: Warning: Cannot modify header information - headers already sent by (output started at /home/imgame/public_html/header.php:1) in /home/imgame/public_html/header.php on line 80   please help and again, thanks for the sql :-)
  3. Re: Admin.php Modification - Why Isn't It Working??? Its Something To Do With The MySql Query , I Think
  4. I Modified Admin.php So I Could Kill ( Set A Users HP To 0 ) Someone In Admin Panel Instantly, This Is What I Did:   I Added This To Admin.php case 'modkill': modkill(); break; case 'modkillsub': modkillsub(); break;   Then Added This To Admin.php [[url='admin.php?action=modkill']Modkill[/url]]   And Added This To Admin.php function modkill() { print "Modkill ID Of The User To Be Modkilled: "; } function modkillsub() { global $ir,$c,$userid; { mysql_query("UPDATE users WHERE userid={$_POST['id']} SET hp=0",$c); print "Mod Killed!! "; } }   It Partly Works, I Can Get Onto The Modkill Screen, And I Can Put Someones User ID Into The Box And It Will Say Modkilled!!, But It Dosent Put There HP Down To 0, What Have I Done Wrong   Thanks!!
  5. I Am Required To Place This Ad   In Header.php, Above <?php. , So I Did And It Works Fine, But I Need It To Show Up, When You ARENT Lgged In Too (login.php, register.php.....) But When I Do That It Says This At The Top: A Text Ad Here (different everyday!!) Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/imgame/public_html/login.php:1) in /home/imgame/public_html/login.php on line 22 Above The Logo, On login.php and register.php Can Someone Help And Make It Stop Doing That, Thanks!!
  6. Re: [urgent Help] My Crons Won't Work, They Suddenly Stopped Working!! [Please Read] is there anyway i could get them to work, please help, its urgent
  7. Re: [urgent Help] My Crons Won't Work, They Suddenly Stopped Working!! [Please Read] well i did try adding another bit to one, the scuba cron, but took it off, how can i get it to work
  8. They Was Working, But They Have Suddenly Stopped Workin, PLease Help, THanks
  9. | Name: {$u} | ID: {$ir['userid']} | Rank: {$ir['level']} | if($ir['hp'] < 50) { print "{$hpperc}%"; } else if ($ir['hp'] > 50) { print "{$hpperc}%"; } Cash: {$fm} | Crystals: {$ir['crystals']} | Loc: Coming Soon! | {$experc}% | Logout | i added the bit in red to header.php, so if u have under 50 health it would shot up in red if you had over if would show green, but it says: Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/imgame/public_html/header.php on line 105 Can Anyone Help
  10. Re: Need A Lil Bit Of Help On hackpc.php Mod Sorted Now - Lock Please - Thanks Matty EDIT - Locked - Matty
  11. Re: Warning: mysql_connect() [function.mysql-connect]: Too many connections in ..... Yep!, Thank You , But Its Ok Now, I Think It Might Just Have Been Something With The Server, But Its Ok Now, Thanks Anyway Mate, You Can Delete Topic Now!!
  12. I Need Help Urgently, My Game Was Working Fine, And Then This Comes Up: Warning: mysql_connect() [function.mysql-connect]: Too many connections in /home/imgame/public_html/mysql.php on line 2 Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /home/imgame/public_html/mysql.php on line 3 Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/imgame/public_html/index.php on line 30 Too many connections   When I Log In And Also On The Register Page But Not On Log In Page Please Help!, Thanks! Help Will Be Much Appreciated!
  13. Re: RITE!!, Everyone's Wish Has Been Granted!!! dunno, why?
  14. Re: Need A Lil Bit Of Help On hackpc.php Mod you got any clue how to make it so you can only hack people with an electrical item and can only hack if you have an electrical item, if you dont its fine,
  15. Re: Need A Lil Bit Of Help On hackpc.php Mod thanks, i tryed that but i didnt do it in capitals, rofl!!, thanks m8 ;),
  16. Re: Need A Lil Bit Of Help On hackpc.php Mod http://www.mygame.com/hackpc.php
  17. Re: Need A Lil Bit Of Help On hackpc.php Mod i do and it just says: Error - no valid player ID to hack specified.
  18. Re: Need A Lil Bit Of Help On hackpc.php Mod no i mean what url i have got to enter to specify the user i want to hack like: www.MyGameURL.com/attack.php?u=1 i tryed www.MyGameURL.com/hackpc.php?u=1 but it didnt work Thanks!!
  19. Re: Need A Lil Bit Of Help On hackpc.php Mod   <?php /* ----------------------------------------------------------------------- -- Hack User's Computer -- (C) 2006 Dabomstew ----------------------------------------------------------------------- -- This script is distributed in the hope that -- it will be useful, but WITHOUT A WARRANTY -- OF ANY KIND. ----------------------------------------------------------------------- -- Dabomstew, Criminalexistence.com, and -- everyone else involved with this script do not -- take any liability for damage done to your game -- by the use of this script. ----------------------------------------------------------------------- */ 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']); $lv=date('F j, Y, g:i a',$ir['laston']); $h->userdata($ir,$lv,$fm); $h->menuarea(); print "[img=images/pccrime.png] "; include "hackpc.config.php"; global $db_config; $in = abs((int) $_GET['ID']); if(!$in) { print "Error - no valid player ID to hack specified."; $h->endpage(); exit; } $q = mysql_query("SELECT * FROM `users` WHERE userid = {$in}", $c); if(!mysql_num_rows($q)) { print "Error - player ID specified does not exist."; $h->endpage(); exit; } $r = mysql_fetch_array($q); if(in_array($in, $db_config['prohibited'])) { print "Error - this player cannot be hacked."; $h->endpage(); exit; } if($r['user_level'] == 0 && $db_config['nohacknpc']) { print "Error - NPCs cannot be hacked."; $h->endpage(); exit; } if($in == $userid) { print "Error - you cannot hack yourself!"; $h->endpage(); exit; } if($r['fedjail']) { print "Error - people in fedjail cannot be hacked"; $h->endpage(); exit; } if($ir['brave'] < $db_config['bravecost']) { print "Error - you need {$db_config['bravecost']} Brave to hack someone's PC."; $h->endpage(); exit; } $rsf = rand(1,100); $exga = rand($db_config['minexp'],$db_config['maxexp']); if($rsf <= $db_config['chance']) { mysql_query("UPDATE users SET exp=exp+{$exga}, brave=brave-{$db_config['bravecost']} WHERE userid={$userid}", $c); $stole=(int) (rand($r['money']/500,$r['money']/200)); if ($stole<0) {$stole=0;} if ($stole>0) { mysql_query("UPDATE users SET money=money+{$stole} WHERE userid={$userid}", $c); mysql_query("UPDATE users SET money=money-{$stole} WHERE userid={$in}", $c); } event_add($in, "[url='viewuser.php?u=$userid']{$ir['username']}[/url] hacked your computer and stole \$$stole! Click [url='hackpc.php?ID={$userid}']here[/url] to try to take your revenge!", $c); print "You succesfully hacked {$r['username']} and stole \$$stole."; } else { mysql_query("UPDATE users SET brave=brave-{$db_config['bravecost']} WHERE userid={$userid}", $c); event_add($in, "[url='viewuser.php?u=$userid']{$ir['username']}[/url] attempted to hack your computer but was stopped by your firewall.", $c); print "Unfortunately, {$r['username']}'s firewall was too good for you to hack past."; } $h->endpage(); ?>   and i would appreciate it if u cud make it so only ppl who have bought a eltronic item can do it, but im more bothered about the id thing
  20. Re: [mccode] Choose Gender can you make the same for starting location, i tryed but it didnt work
  21. Ive Added It, But How Do I Specify Which Users I Want To Do It To I Tryed This: www.MyGameURL!.com/hackpc.php?u=1 But It Didnt Work, Anybody Know?? Thanks!
  22. I Tryed Adding The Ranks Mod;   function get_rank($stat, $mykey) { global $ir,$userid,$c; $q=mysql_query("SELECT count(*) FROM userstats us LEFT JOIN users u ON us.userid=u.userid WHERE us.$mykey > $stat AND us.userid != $userid AND u.user_level != 0", $c) ; return mysql_result($q,0,0)+1; } function get_gamerank($level, $housevalue, $stats) { $tp=($level*$level) * 3000 + ($housevalue) + (($stats['strength']+$stats['agility']+$stats['guard']+$stats['labour']+$stats['IQ']) * 10); if ( $tp < 100000 ) { return "#1 First Newbie"; } else if ( $tp < 400000 ) { return "#2 Newbie"; } else if ( $tp < 1600000 ) { return "#3 Beginner"; } else if ( $tp < 6400000 ) { return "#4 Not Experienced"; } else if ( $tp < 25600000 ) { return "#5 Rookie"; } else if ( $tp < 102400000 ) { return "#6 Average"; } else if ( $tp < 409600000 ) { return "#7 Good"; } else if ( $tp < 819200000 ) { return "#8 Very Good"; } else if ( $tp < 3276800000 ) { return "#9 Greater Than Average"; } else if ( $tp < 13107200000 ) { return "#10 Experienced"; } else if ( $tp < 52428800000 ) { return "#11 Highly Experienced"; } else if ( $tp < 209715200000 ) { return "#12 Honoured"; } else if ( $tp < 838860800000 ) { return "#13 Highly Hounoured"; } else if ( $tp < 3355443200000 ) { return "#14 Respect King"; } else if ( $tp < 6655886400000 ) { return "#15 True Champion"; } } But It Says; Fatal error: Cannot redeclare get_rank() (previously declared in /home/imgame/public_html/global_func.php:192) in /home/imgame/public_html/global_func.php on line 214 Can Anyone Help Thanks, Ive Tryed My Hardest :-(
  23. Re: Is There Anyway I Can Change The Levels From 1 2 3.. To Like Scumbag, Civilian.. yeh, haha, very funny, ive done now anyway you n00b
  24. Re: [HELP] My Brave Won't Go Up, Neither Will My Energy [HELP] help
  25. Re: How Do I Make A Link - So I Press Some Text And It Runes A Query? yeh i did, what you gonna do, and what is the :x about, aww... are you getting angry :lol:
×
×
  • Create New...