Jump to content
MakeWebGames

Gucci Mane

Members
  • Posts

    207
  • Joined

  • Last visited

Everything posted by Gucci Mane

  1. Is there something I could download off the internet or something? to test mods before adding to my game? something that has the phpmyadmin and the way to add files to check em to see for bugs? Thanks in advance
  2. Gucci Mane

    hey

    I got it done haha I ahve big plans this is just a test game man
  3. I fixed it man thx
  4. I am adding mccodes v2 to a new host. Everything goes great til I get to step 3. When I get to the last step, I get this: Write Config... Config written. Attempting DB connection Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'Jewelz'@'stoli.x10hosting.com' (using password: YES) in /home/*****/public_html/class/class_db_mysql.php on line 46 FATAL ERROR: Could not connect to database on localhost (Access denied for user '******'@'stoli.x10hosting.com' (using password: ****)) I got this now, I have a class folder and the 2 files in it.
  5. Gucci Mane

    hey

    How do I do that man?
  6. Gucci Mane

    hey

    When I try to install my mccodes v2 on aanotehr host I get this: One of the basic diagnostics failed, so Setup cannot continue. Please fix the ones that failed and try again. PHP version >= 4.1.2 OK Game folder writable Failed MySQL support in PHP present OK Game installed at root level of domain or subdomain OK   HELP PLEASE
  7. I still get this error : Fatal error: Call to a member function query() on a non-object in /home/jewelz/public_html/preferences.php on line 164 I did what you said Danny
  8. Can someone tell me how to do this??
  9. can you tell me what to do to line 164??
  10. Thats works good thx guys...now i get this error when I try to add my sig   Fatal error: Call to a member function query() on a non-object in /home/jewelz/public_html/preferences.php on line 164
  11. I just added a new profile sig. mod I am having problems with the sql and the pref.php Sql (I need this fixed) ALTER users ADD `signature` text NOT NULL,   preferences.php <?php /* MCCodes Lite preferences.php Rev 1.0.0 Copyright (C) 2006 Dabomstew This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ include "globals.php"; switch($_GET['action']) { case 'sexchange2': do_sex_change(); break; case 'sexchange': conf_sex_change(); break; case 'passchange2': do_pass_change(); break; case 'passchange': pass_change(); break; case 'namechange2': do_name_change(); break; case 'namechange': name_change(); break; case 'picchange2': do_pic_change(); break; case 'picchange': pic_change(); break; case 'signature2': do_signature_change(); break; case 'signature': signature_change(); break; default: prefs_home(); break; } function prefs_home() { global $ir,$c,$userid,$h; print "<h3>Preferences</h3> [url='preferences.php?action=sexchange']Sex Change[/url] [url='preferences.php?action=passchange']Password Change[/url] [url='preferences.php?action=namechange']Name Change[/url] [url='preferences.php?action=signature']Profile Signature[/url] [url='preferences.php?action=picchange']Display Pic Change[/url] "; } function conf_sex_change() { global $ir,$c,$userid,$h; if($ir['gender'] == "Male") { $g="Female"; } else { $g="Male"; } print "Are you sure you want to become a $g? [url='preferences.php?action=sexchange2']Yes[/url] | [url='preferences.php']No[/url]"; } function do_sex_change() { global $ir,$c,$userid,$h; if($ir['gender'] == "Male") { $g="Female"; } else { $g="Male"; } $db->query("UPDATE users SET gender='$g' WHERE userid=$userid",$c); print "Success, you are now $g! [url='preferences.php']Back[/url]"; } function pass_change() { global $ir,$c,$userid,$h; print "<h3>Password Change</h3><form action='preferences.php?action=passchange2' method='post'>Current Password: <input type='password' name='oldpw' /> New Password: <input type='password' name='newpw' /> Confirm: <input type='password' name='newpw2' /> <input type='submit' value='Change PW' /></form>"; } function do_pass_change() { global $ir,$c,$userid,$h; if($_POST['oldpw'] != $ir['userpass']) { print "The current password you entered was wrong. [url='preferences.php?action=passchange']> Back[/url]"; } else if($_POST['newpw'] !== $_POST['newpw2']) { print "The new passwords you entered did not match! [url='preferences.php?action=passchange']> Back[/url]"; } else { $db->query("UPDATE users SET userpass='{$_POST['newpw']}' WHERE userid=$userid",$c); print "Password changed!"; } } function name_change() { global $ir,$c,$userid,$h; print "<h3>Name Change</h3> Please note that you still use the same name to login, this procedure simply changes the name that is displayed. <form action='preferences.php?action=namechange2' method='post'> New Name: <input type='text' name='newname' /> <input type='submit' value='Change Name' /></form>"; } function do_name_change() { global $ir,$c,$userid,$h; if($_POST['newname'] == "") { print "You did not enter a new name. [url='preferences.php?action=namechange']> Back[/url]"; } else { $_POST['newname']=str_replace(array("<", ">", "\\\'"), array("<", ">", "'"), $_POST['newname']); $db->query("UPDATE users SET username='{$_POST['newname']}' WHERE userid=$userid",$c); print "Username changed!"; } } function signature_change() { global $ir,$c,$userid,$h; print "<h3>Profile Signature Change</h3> <form action='preferences.php?action=signature2' method='post'> New Profile Signature: <textarea rows=7 cols=40 name='newsignature'>{$ir['signature']}</textarea> <input type='submit' value='Change Profile Signature' /></form> [b]Current Profile Signature :[/b]{$r['signature']}"; } function do_signature_change() { global $ir,$c,$userid,$h; if($_POST['newsignature'] == "") { print "You did not enter a new signature. > [url='preferences.php?action=signature']Back[/url]"; } else { $db->query("UPDATE users SET signature='{$_POST['newsignature']}' WHERE userid=$userid",$c); print "Profile Signature changed!"; } } function pic_change() { global $ir,$c,$userid,$h; print "<h3>Pic Change</h3> Please note that this must be externally hosted, [url='http://imageshack.us']ImageShack[/url] is our recommendation. Any images that are not 150x150 will be automatically resized <form action='preferences.php?action=picchange2' method='post'> New Pic: <input type='text' name='newpic' value='{$ir['display_pic']}' /> <input type='submit' value='Change Name' /></form>"; } function do_pic_change() { global $ir,$c,$userid,$h; if($_POST['newpic'] == "") { print "You did not enter a new pic. [url='preferences.php?action=picchange']> Back[/url]"; } else { $_POST['newpic']=str_replace('\\\'',''', $_POST['newpic']); $db->query("UPDATE users SET display_pic='{$_POST['newpic']}' WHERE userid=$userid",$c); print "Pic changed!"; } } $h->endpage(); ?>   I need the error in preferences fixed. The error is: Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/jewelz/public_html/preferences.php on line 187
  12. Works man ty. Do you know anything about the security??
  13. When I try to rate someone up/down I get this error: Fatal error: Call to a member function query() on a non-object in /home/jewelz/public_html/rating.php on line 45   heres my rating.php   <?php /* Simple user rating system (Free Mod) For mccodes v2 Property of [url]www.ganjasworld.com[/url] */ include "globals.php"; $ID = (int) ($_GET['ID']); $action = $_GET['action']; switch($action) { case 'goodrating': good_rating(); break; case 'badrating': good_rating(); break; } if(!$ID) { echo "Error - invaild player id."; $h->endpage(); exit; } if(!$action) { echo "Error - invaild action."; $h->endpage(); exit; } function good_rating() { global $ir,$userid; if($ir['rates'] > 0){ $ID = $_GET['ID']; if($ID == $userid) { echo "You cannot rate yourself."; } else { $result = $db->query("SELECT * FROM users WHERE userid='{$ID}'"); while($row = $db->fetch_row($result)) { $gratings = $row['goodratings']; } $db->query("UPDATE users SET goodratings = {$gratings}+1 WHERE userid='{$ID}'"); $db->query("UPDATE users SET rates = '0' WHERE userid='{$userid}'"); echo "You gave the user a good rating"; } } else { echo "You can only rate once a day."; } } function bad_rating() { if($ir['rates'] > 0){ $ID = $_GET['ID']; if($ID == $userid) { echo "You cannot rate yourself."; } else { $result = $db->query("SELECT * FROM users WHERE userid='{$ID}'"); while($row = $db->fetch_row($result)) { $bratings = $row['badratings']; } $db->query("UPDATE users SET badratings = {$bratings}+1 WHERE userid='{$ID}'"); $db->query("UPDATE users SET rates = '0' WHERE userid='{$userid}'"); echo "You gave the user a bad rating"; } } else { echo "You can only rate once a day."; } } $h->endpage(); ?>
  14. worked great man thx +1
  15. <?php include "globals.php"; $_GET['u'] = abs((int) $_GET['u']); if(!$_GET['u']) { print "Invalid use of file"; } else { $q=$db->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']}"); if($db->num_rows($q) == 0) { print "Sorry, we could not find a user with that ID, check your source."; } else { $r=$db->fetch_row($q); if($r['user_level'] == 1) { $userl="Mobster"; } else if($r['user_level'] == 2) { $userl="Owner"; } else if ($r['user_level'] == 3) { $userl="Admin"; } else if($r['user_level'] == 0) { $userl="NPC"; } else {$userl="Moderator"; } $lon=($r['laston'] > 0) ?date('F j',$r['laston']) : "Never"; $sup=date('j F',$r['signedup']); $ts=$r['strength']+$r['agility']+$r['guard']+$r['labour']+$r['IQ']; $d=""; if($r['laston'] > 0) { $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"; } } $str="$la $unit ago"; } else { $str="--"; } if($r['last_login'] > 0) { $ll=time()-$r['last_login']; $unit2="seconds"; if($ll >= 60) { $ll=(int) ($ll/60); $unit2="minutes"; } if($ll >= 60) { $ll=(int) ($ll/60); $unit2="hours"; if($ll >= 24) { $ll=(int) ($ll/24); $unit2="days"; } } $str2="$ll $unit2 ago"; } else { $str2="--"; } if($r['user_level'] >1){ $r['username'] = "<font color=red>{$r['username']}</font>";} elseif($r['donatordays']) { $r['username'] = "<font color=yellow>{$r['username']}</font>";$d="[img=don.gif]"; } if($r['laston'] >= time()-15*60) { $on="<font color=green>[b]Online[/b]</font>"; } else { $on="<font color=red>[b]Offline[/b]</font>"; } if($r['display_pic']) { print "<center>[img={$r[] </center>"; } else { print "<center>[img=http://i38.tinypic.com/29bh8d5.jpg]</center> "; } print "<table width=85% cellpadding=3 class='table' border='0'><div align=center> <tr><td> [b]Name:[/b] {$r['username']} [{$r['userid']}] $d </td> <td> [b]User Level:[/b] [url='stafflist.php']$userl[/url] </td></tr> <tr><td> [b]Level:[/b] {$r['level']} </td> <td> [b]Health:[/b] {$r['hp']}/{$r['maxhp']} </td></tr> <tr><td> [b]Gender:[/b] {$r['gender']} </td> <td> Ratings: [url='rating.php?ID={$r['][img=thumbsup.gif][/url] [b]{$r['goodratings']}[/b] up, [url='rating.php?ID={$r['][img=thumbsdown.gif][/url][b]{$r['badratings']}[/b] down </td> <td> [b]Age:[/b] {$r['daysold']} Days </td></tr> <tr><td> </td> <td> [b]Last Active:[/b] $str </td></tr> <tr><td> [b]Marital Status:[/b] "; if ($r['marriage']) { print "Married to [url='viewuser.php?u={$pr[']{$pr['username']}[/url]"; } else { print "Single"; } print " </td></tr> <tr><td> [b]Gang:[/b] "; if($r['gang']) { print "[url='gangs.php?action=view&ID={$r[']{$r['gangNAME']}[/url]"; } else { print "None"; } print " </td> <td> [b]Location:[/b] [url='airport.php']{$r['cityname']}[/url] </td></tr> <tr><td> [b]Money:[/b] \${$r['money']} </td> <td> Property: {$r['hNAME']} </td></tr>"; $sh=($ir['user_level'] >1) ? "Staff Info" : " "; print "</td></tr>"; if($r['fedjail']) { print " [b]<font color=brown>This user is in federal jail for {$r['fed_days']} day(s). {$r['fed_reason']}</font>"; } if($r['hospital']) { print " [b]<font color=red>This user is in hospital for {$r['hospital']} minutes. {$r['hospreason']}</font>[/b] "; } if($r['jail']) { print " [b]<font color=red>This user is in jail for {$r['jail']} minutes. {$r['jail_reason']}</font>[/b]</td></tr><tr> <td> "; } print "</div></table><table width=85% bgcolor=#202020 cellpadding=3> <tr><td> [[url='mailbox.php?action=compose&ID={$r[']Send Mail[/url]] </td><td> [[url='sendcash.php?ID={$r[']Send Cash[/url]] <td> [[url='sendpoints.php?ID={$r[']Send Points[/url]] </td><td> [[url='sendbank.php?ID={$r[']Bank Xfer[/url]] </td></tr><tr><tr></tr></tr><tr><td> [[url='sendcyber.php?ID={$r[']CyberBank Xfer[/url]] </td><td> [[url='attack.php?ID={$r[']Attack[/url]] </td><td> [[url='hackpc.php?ID={$r[']Rob[/url]] </td><td> [[url='contactlist.php?action=add&ID={$r[']Add Contact[/url]] </td></tr><tr>"; { print " </tr><tr></tr><tr><td> [[url='friendslist.php?action=add&ID={$r[']Add Friends[/url]] </td><td> [[url='blacklist.php?action=add&ID={$r[']Add Enemies[/url]] </td>"; print ""; } if($ir['user_level'] == 2 || $ir['user_level'] == 3 || $ir['user_level'] == 5) { print " <td> [[url='jailuser.php?userid={$r[']Jail[/url]] </td><td> [[url='mailban.php?userid={$r[']MailBan[/url]] </td></tr>"; } if($ir['donatordays'] > 0) print "</table> "; print"</center>"; if($ir['user_level'] == 2 || $ir['user_level'] == 3 || $ir['user_level'] == 5) { $r['lastiph']=@gethostbyaddr($r['lastip']); $r['lastiph']=checkblank($r['lastiph']); $r['lastip_loginh']=@gethostbyaddr($r['lastip_login']); $r['lastip_loginh']=checkblank($r['lastip_loginh']); $r['lastip_signuph']=@gethostbyaddr($r['lastip_signup']); $r['lastip_signuph']=checkblank($r['lastip_signuph']); print "<center><h3>Internet Info</h3><table width='100%' border='0' cellspacing='1' class='table'> <tr><td></td><td class='h'>IP</td><td class='h'>Hostname</td></tr> <tr><td class='h'>Last Hit</td><td >$r[lastip]</td><td >$r[lastiph]</td></tr> <tr><td class='h'>Last Login</td><td '>$r[lastip_login]</td><td >$r[lastip_loginh]</td></tr> <tr><td class='h'>Signup</td><td >$r[lastip_signup]</td><td >$r[lastip_signuph]</td></tr> [url='staff_punit.php?action=ipform']<u>IP search this user</u>[/url] "; print "<form action='staffnotes.php' method='post'> Staff Notes: <textarea rows=7 cols=40 name='staffnotes'>{$r['staffnotes']}</textarea> <input type='hidden' name='ID' value='{$_GET['u']}' /> <input type='submit' value='Change' /></form></center>"; } else { print " "; } print "</tr></table>"; } } function checkblank($in) { if(!$in) { return "N/A"; } return $in; } $h->endpage(); ?>   On my game, when I go to a married user profile it says "Martial Status: Married To" I doesnt say the partners name. Can you please help me fix this. Thanks
  16. I just thought it would be nice to get a player perspective but ur right man
  17. I was wondering if mabe a few people would like to send me some crime, job, course, or house names. I am struggling to think of crimes and stuff to add, to my game. Any ideas needed
  18. kk ty
  19. I found the mod but I mean   the pictures them selves
  20. I tried but there are none
  21. For what though? LOL like do I just search "item pics"?
  22. email validation Set them up thru cpanel not a php file
  23. Where can I get item pics?
  24. I get that on myphpadmin and when I try to access my game any ideas??
×
×
  • Create New...