Jump to content
MakeWebGames

Homicidal

Members
  • Posts

    19
  • Joined

  • Last visited

    Never

Homicidal's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Right now I have it where it shows the userId that you are married to. I am wondering if there is a way to change it where it displays the username instead of the userID
  2. I have users that have passed the cap of 2,147,483,647 and then they train some more and then it resets them back to 2,147,483,647 and it's starting to upset them because they have worked there ass off to get their stats up. Does anyone know how I can fix this and stop it from happening..
  3. Re: How to Make you rmarried Stats Display in viewuser.php OK I understand what you are saying but where do I put those codes and is it for version 1.1
  4. I have been working on this for 3 days, but I can't seem to figure out how to make it display who you are married to or make it where you can't propose to anyone else.
  5. Re: Players to take users to the hopital or jail Ok I understand what you are saying but where would I put that on each of the pages, omitting th item page
  6. I am currently using a redirect to take my users/players to the hospital or jail.. Is there some other way I can do this that way they can at least use there meds to get out of the hospital because right now you have to be as fast as lighting to use the meds to get out. Any help with the would be helpful.
  7. Re: Prolly another dumb question Thanks I got it wokring right, Thanks for all you vauable input
  8. Re: Game Rank I got it fixed I used: Game Rank: ".get_gamerank($ir['level'], $ir['hPRICE'], $ir)."</td>
  9. Re: Game Rank I'll try that
  10. How do I make it where they don't lose so much will when they are training in the gym ? and How do I make it where they lose all there exp when the fail a crime? I know I am new to this all and I prolly am asking to many questions
  11. I have tried putting this everywhere and I stil get errors; Rank: ".get_gamerank($r['level'],$r['hPRICE'],$r)." <?php /*----------------------------------------------------- -- Mono Country v1.0 BETA -- A product of DBS-entertainment -- Copyright held 2005 by Dabomstew -- INDEX.php -----------------------------------------------------*/ 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']); $cm=money_formatter($ir['crystals'],''); $lv=date('F j, Y, g:i a',$ir['laston']); $h->userdata($ir,$lv,$fm,$cm); $h->menuarea(); $_GET['u'] = abs((int) $_GET['u']); if(!$_GET['u']) { print "Invalid use of file"; } else { $q=mysql_query("SELECT u.*,us.*,c.*,h.*,g.*,f.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid LEFT JOIN cities c ON u.location=c.cityid LEFT JOIN houses h ON u.maxwill=h.hWILL LEFT JOIN gangs g ON g.gangID=u.gang LEFT JOIN fedjail f ON f.fed_userid=u.userid WHERE u.userid={$_GET['u']}",$c); if(mysql_num_rows($q) == 0) { print "Sorry, we could not find a user with that ID, check your source."; } else { $r=mysql_fetch_array($q); if($r['user_level'] == 1) { $userl="Member"; } else if($r['user_level'] == 2) { $userl="Admin"; } else if ($r['user_level'] == 3) { $userl="Secretary"; } else if($r['user_level'] == 0) { $userl="NPC"; } else if($r['user_level']==4) { $userl="IRC Mod"; } else {$userl="Assistant"; } $lon=date('F j, Y g:i:s a',$r['laston']); $sup=date('F j, Y g:i:s a',$r['signedup']); $ts=$r['strength']+$r['agility']+$r['guard']+$r['labour']+$r['IQ']; $d=""; $la=time()-$r['laston']; $unit="seconds"; if($la >= 60) { $la=(int) ($la/60); $unit="minutes"; } if($la >= 60) { $la=(int) ($la/60); $unit="hours"; if($la >= 24) { $la=(int) ($la/24); $unit="days"; } } if($r['donatordays']) { $r['username'] = "{$r['username']}";$d=""; } if($r['laston'] >= time()-15*60) { $on="Online"; } else { $on="Offline"; } print " Profile for {$r['username']} General Info Financial Info Display Pic Name: {$r['username']} [{$r['userid']}] $d User Level: $userl Duties: {$r['duties']} Gender: {$r['gender']} Signed Up: $sup Last Active: $lon Last Action: $la $unit ago Online: $on Days Old: {$r['daysold']} Location: {$r['cityname']} Money: \${$r['money']} Crystals: {$r['crystals']} Property: {$r['hNAME']} Referals: "; $rr=mysql_query("SELECT * FROM referals WHERE refREFER={$r['userid']}",$c); print mysql_num_rows($rr); $q_y=mysql_query("SELECT * FROM friendslist WHERE fl_ADDED={$r['userid']}",$c); $q_z=mysql_query("SELECT * FROM blacklist WHERE bl_ADDED={$r['userid']}",$c); print " Friends: ".mysql_num_rows($q_y)." Enemies: ".mysql_num_rows($q_z)." "; if($r['display_pic']) { print ""; } else { print "This user has no display pic!"; } print " Physical InfoLinksLevel: {$r['level']} Health: {$r['hp']}/{$r['maxhp']} Gang: "; if($r['gang']) { print "{$r['gangNAME']}"; } else { print "N/A"; } if($r['fedjail']) { print " In federal jail for {$r['fed_days']} day(s). {$r['fed_reason']}"; } if($r['hospital']) { print " In hospital for {$r['hospital']} minutes. {$r['hospreason']}"; } if($ir['user_level'] == 2 || $ir['user_level'] == 3 || $ir['user_level'] == 5) { print " IP Address: {$r['lastip']}"; print " Staff Notes: {$r['staffnotes']} "; } print " [Send Mail] [Send Cash] [Attack]"; if($ir['user_level'] == 2 || $ir['user_level'] == 3 || $ir['user_level'] == 5) { print " [Jail] [Hack Users PC] "; } if($ir['donatordays'] > 0) { print " [Add Friends] [Add Enemies] "; } print " "; } } $h->endpage(); ?> Here is the error I keep getting Fatal error: Call to undefined function: get_gamerank() in /home/rob1978/public_html/darkside-mafia/viewuser.php on line 73 and here's how I have it placed <?php /*----------------------------------------------------- -- Mono Country v1.0 BETA -- A product of DBS-entertainment -- Copyright held 2005 by Dabomstew -- INDEX.php -----------------------------------------------------*/ 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']); $cm=money_formatter($ir['crystals'],''); $lv=date('F j, Y, g:i a',$ir['laston']); $h->userdata($ir,$lv,$fm,$cm); $h->menuarea(); $_GET['u'] = abs((int) $_GET['u']); if(!$_GET['u']) { print "Invalid use of file"; } else { $q=mysql_query("SELECT u.*,us.*,c.*,h.*,g.*,f.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid LEFT JOIN cities c ON u.location=c.cityid LEFT JOIN houses h ON u.maxwill=h.hWILL LEFT JOIN gangs g ON g.gangID=u.gang LEFT JOIN fedjail f ON f.fed_userid=u.userid WHERE u.userid={$_GET['u']}",$c); if(mysql_num_rows($q) == 0) { print "Sorry, we could not find a user with that ID, check your source."; } else { $r=mysql_fetch_array($q); if($r['user_level'] == 1) { $userl="Member"; } else if($r['user_level'] == 2) { $userl="Admin"; } else if ($r['user_level'] == 3) { $userl="Secretary"; } else if($r['user_level'] == 0) { $userl="NPC"; } else if($r['user_level']==4) { $userl="IRC Mod"; } else {$userl="Assistant"; } $lon=date('F j, Y g:i:s a',$r['laston']); $sup=date('F j, Y g:i:s a',$r['signedup']); $ts=$r['strength']+$r['agility']+$r['guard']+$r['labour']+$r['IQ']; $d=""; $la=time()-$r['laston']; $unit="seconds"; if($la >= 60) { $la=(int) ($la/60); $unit="minutes"; } if($la >= 60) { $la=(int) ($la/60); $unit="hours"; if($la >= 24) { $la=(int) ($la/24); $unit="days"; } } if($r['donatordays']) { $r['username'] = "{$r['username']}";$d=""; } if($r['laston'] >= time()-15*60) { $on="Online"; } else { $on="Offline"; } print " Profile for {$r['username']} General Info Financial Info Display Pic Name: {$r['username']} [{$r['userid']}] $d User Level: $userl Duties: {$r['duties']} Gender: {$r['gender']} Signed Up: $sup Last Active: $lon Last Action: $la $unit ago Rank: ".get_gamerank($r['level'],$r['hPRICE'],$r)." Online: $on Days Old: {$r['daysold']} Location: {$r['cityname']} Money: \${$r['money']} Crystals: {$r['crystals']} Property: {$r['hNAME']} Referals: "; $rr=mysql_query("SELECT * FROM referals WHERE refREFER={$r['userid']}",$c); print mysql_num_rows($rr); $q_y=mysql_query("SELECT * FROM friendslist WHERE fl_ADDED={$r['userid']}",$c); $q_z=mysql_query("SELECT * FROM blacklist WHERE bl_ADDED={$r['userid']}",$c); print " Friends: ".mysql_num_rows($q_y)." Enemies: ".mysql_num_rows($q_z)." "; if($r['display_pic']) { print ""; } else { print "This user has no display pic!"; } print " Physical InfoLinks Level: {$r['level']} Health: {$r['hp']}/{$r['maxhp']} Gang: "; if($r['gang']) { print "{$r['gangNAME']}"; } else { print "N/A"; } if($r['fedjail']) { print " In federal jail for {$r['fed_days']} day(s). {$r['fed_reason']}"; } if($r['hospital']) { print " In hospital for {$r['hospital']} minutes. {$r['hospreason']}"; } if($ir['user_level'] == 2 || $ir['user_level'] == 3 || $ir['user_level'] == 5) { print " IP Address: {$r['lastip']}"; print " Staff Notes: {$r['staffnotes']} "; } print " [Send Mail] [Send Cash] [Attack]"; if($ir['user_level'] == 2 || $ir['user_level'] == 3 || $ir['user_level'] == 5) { print " [Jail] [Hack Users PC] "; } if($ir['donatordays'] > 0) { print " [Add Friends] [Add Enemies] "; } print " "; } } $h->endpage(); ?>
  12. Re: Error Message when players hackign other players accounts... Thanks that worked
  13. Re: Error Message when players hackign other players accounts... v1
  14. Your account may be broken. Please mail [email protected] stating your username and player ID."); } if($dosessh && $_SESSION['attacking']) { print "You lost all your EXP for running from the fight."; mysql_query("UPDATE users SET exp=0 WHERE userid=$userid",$c); $_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 = "{$ir['username']}";$d=""; } if($ir['gang']) { $qg=mysql_query("SELECT * FROM gangs WHERE gangID={$ir['gang']}",$c); $rr=mysql_fetch_array($qg); $gn=$rr['gangPREF']." "; } else { $gn=""; } print " Name: $gn{$u} [{$ir['userid']}] $d Money: {$fm} Level: {$ir['level']} Crystals: {$ir['crystals']} [Emergency Logout] Energy: {$enperc}% Will: {$wiperc}% Brave: {$ir['brave']}/{$ir['maxbrave']} EXP: {$experc}% Health: {$hpperc}% Vote for Darkside Mafia on various gaming sites and be rewarded! Donate to Darkside Mafia, it's only \$3 and gets you a lot of benefits! "; $q=mysql_query("SELECT * FROM ads ORDER BY rand() LIMIT 1",$c); if(mysql_num_rows($q)) { $r=mysql_fetch_array($q); print " "; mysql_query("UPDATE ads SET adVIEWS=adVIEWS+1 WHERE adID={$r['adID']}",$c); } print " "; if($ir['fedjail']) { $q=mysql_query("SELECT * FROM fedjail WHERE fed_userid=$userid",$c); $r=mysql_fetch_array($q); die("You have been put in the Your Game Name Federal Jail for {$r['fed_days']} day(s). Reason: {$r['fed_reason']}
  15. Re: Money Cap it's not in any file, you need to go into your database, usually using phpmyadmin and change all the fields in the userstats table to bigint(20) Someone said to do this but It doesn't say which files to changes I am new to this so you have to explain it a lil bit more
×
×
  • Create New...