Jump to content
MakeWebGames

Kasabian

Members
  • Posts

    152
  • Joined

  • Last visited

Everything posted by Kasabian

  1. Re: Items Pic mod [v2]   yes thats my next step.. if i find a way i will post it for you BUT only if you have a afro like this guy >> :mrgreen:
  2. Re: Items Pic mod [v2] i had problems with gettin the picture to show at all if your having that try this in iteminfo.php if($id['itmpic']) { $itmpic = "<tr style='background: gray;'><td colspan='2' style='text-align: center;'>[img={$id[]</td></tr>"; } print "<table width=75% class='table' cellspacing='1'><tr style='background: gray;'><th colspan=2>[b]Looking up info on {$id['itmname']}[/b]</th></tr>$itmpic<tr bgcolor=#dfdfdf><td colspan=2>The [b]{$id['itmname']}[/b] is a/an {$id['itmtypename']} Item - [b]{$id['itmdesc']}[/b]</th><tr style='background: gray;'><th colspan=2>Item Info</th></tr><tr style='background:gray'><th>Item Buy Price</th><th>Item Sell Price</th></tr><tr><td>";
  3. Re: Hi | TheMafia welcome ishyy
  4. Kasabian

    Programs

    Re: Programs   Not the best programm to use for php .. i use it but only because i got in to the habbit as if moved from java, html and css its ok i suppose
  5. Re: [REVIEW]Criminal Warfare i like it but .. i find it hard to read the black text inside the game with the stone sort of background
  6. Re: Game Ranks well joker can i request that you come up with a better one?
  7. Re: Game Ranks jaye1 you missed out the function
  8. Re: Game Ranks For v2 you dont need: (as it already in global_func.php) 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; }   Just paste at the bottom of global_func.php: (Just before the ?>) 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"; } }   and add to viewuser.php: [b]Rank:[/b] ".get_gamerank($r['level'],$r['hPRICE'],$r)."
  9. Re: The Point of Crime XP? Blank
  10. Re: The Point of Crime XP? amen ... best way ( for me ) to learn is getting my hands stuck in and playing around with it
  11. Re: Game Ranks enyone got a working version of this?
  12. is there an Alternative to crons? if so can you post how Thanks
  13. Re: Stats bars can someone tell me how, when the bar is full i can get rid of the image on the end I know how works, but how to get ride of the image at the end when one is full
  14. Re: Anyone Got A Working Stats.php? paste this in with your Register.php: if(strlen($_POST['password']) < 3) { die("Sorry, the Password is too short. >[url='register.php']Back[/url]"); }   stops people registering with no password
  15. Re: Anyone Got A Working Stats.php? thats just working around it :D
  16. Re: Anyone Got A Working Stats.php? its just dividing $2,148,958,688. by 8 thats your problem
  17. Re: Anyone Got A Working Stats.php?   <?php include "globals.php"; $q=$db->query("SELECT userid FROM users"); $membs=$db->num_rows($q); $q=$db->query("SELECT userid FROM users WHERE bankmoney>-1"); $banks=$db->num_rows($q); $q=$db->query("SELECT userid FROM users WHERE gender='Male'"); $male=$db->num_rows($q); $q=$db->query("SELECT userid FROM users WHERE gender='Female'"); $fem=$db->num_rows($q); $total=0; $q=$db->query("SELECT money FROM users"); while($r=$db->fetch_row($q)) { $total+=$r['money']; } $avg=(int) ($total/$membs); $totalb=0; $q=$db->query("SELECT bankmoney FROM users WHERE bankmoney>-1"); while($r=$db->fetch_row($q)) { $totalb+=$r['bankmoney']; } $avgb=(int) ($totalb/$banks); $totalc=0; $q=$db->query("SELECT crystals FROM users"); while($r=$db->fetch_row($q)) { $totalc+=$r['crystals']; } $totali=0; $q=$db->query("SELECT inv_qty FROM inventory"); while($r=$db->fetch_row($q)) { $totali+=$r['inv_qty']; } $avgc=(int) ($totalc/$membs); $q=$db->query("SELECT mail_id FROM mail"); $mail=$db->num_rows($q); $q=$db->query("SELECT evID FROM events"); $events=$db->num_rows($q); print "<h3>Game Statistics</h3> You step into the Statistics Department and login to the service. You see some stats that interest you. <table width=75% cellspacing=1 class='table'> <tr> <th>Users</th><th>Money and crystals</th></tr><tr><td> There are currently $membs {$set['game_name']} players, $male males and $fem females.</td> <td> Amount of cash in circulation: \$".money_formatter($total,"").". The average player has: \$".money_formatter($avg,"").". Amount of cash in banks: \$".money_formatter($totalb,"").". Amount of players with bank accounts: $banks The average player has in their bank accounts: \$".money_formatter($avgb,"").". Amount of crystalss in circulation: ".money_formatter($totalc,"").". The average player has: ".money_formatter($avgc,"")." crystals.</td> </tr> <tr> <th>Mails/Events</th><th>Items</th></tr><tr><td> ".money_formatter($mail,"")." mails and ".money_formatter($events,"")." events have been sent.</td> <td> There are currently ".money_formatter($totali,"")." items in circulation.</td> </tr> </table>"; $h->endpage(); ?>     Please use [code]...[/code] tags in future
  18. can enyone help me, when the stats bar is on full "colour" you still get a 1px bar of red on the end and vice versa when the bar is full "red" can someone tell me how when the bar is full i can get rid of the image on the end   Thanks :-)
×
×
  • Create New...