Jump to content
MakeWebGames

Crimecity-Mafia Text-Based MMORPG


jcvenom

Recommended Posts

Join Crimecity-Mafia

commit crimes, Mug people, Play the casino, Be a property broker, Play the stock market, Setup dog fights or claim bounties on peoples heads.

Train in the gym, Use merits to upgrade, Level up and rank up to be the best. win prizes, recieve bonuses, doublexp, missions, refills and more

Attack or befriend people, But be carefull, In Crimecity-Mafia there are always snakes in the grass

url is http://crimecity-mafia.com/home.php

type in 1 in the referral

it is my own game all my work you can hire me if you like

cheers

Jcvenom

Edited by jcvenom
Link to comment
Share on other sites

"all my work", looks pretty damn close to MCC there, however the skin is improved.

Mostly every game you see these days look like MCC because new owners wanna set their game as the first internet game they ever played.

Link to comment
Share on other sites

Guy asked me where to learn PHP, he clearly didn't make this site nor is it his own work.

He's trying to promote his site, not have his skills examined.

He could of paid another coder to complete work or collected free modifications! Keep it friendly please.

Link to comment
Share on other sites

Guy asked me where to learn PHP, he clearly didn't make this site nor is it his own work.

you are clearly retarded it does use ruthlesscity script instead i changed it alot and if you were not listening i didnt say i cant code i said i want to improve on my coding and since your a web developer i asked you so i dont know why your saying i can't code

- - - Updated - - -

 

he has done alot of work him self it dont take a basic coder to complete the scripts in the stat it was in he did well :D good luck with the game

thank you and your right a basic coder cant do what i can do and im still improving on my php im not a pro lol

Link to comment
Share on other sites

He's trying to promote his site, not have his skills examined.

He could of paid another coder to complete work or collected free modifications! Keep it friendly please.

i did not pay a coder why would i waste money when all it takes is time and effort you guys can't be judging people's games every game on the site gets critised the first impressions is its made from mccodes people cop on

Link to comment
Share on other sites

he has done alot of work him self it dont take a basic coder to complete the scripts in the stat it was in he did well :D good luck with the game

I have looked at your code you sent me in mail i fixed it

 


//Jcvenom

function add()
  {
  echo "<center><main>Add items to your display</main><hr width = '750px'>";
  global $pl;
  $q_ry = array();
  $q_ry = "SELECT `display_case`
           FROM `members_extra`
           WHERE `playerid` = '".mysql_real_escape_string($_SESSION['playerid'])."'
           AND `display_case` = 'yes'";
  $myshop = array();
  $myshop = mysql_query($q_ry);
  if(!mysql_num_rows($myshop))
  {
   echo "Error, You dont own a display case to add items to!<br/>
         <hr width='750px'>><a href=\"javascript:history.back();\">Back</a><hr width='750px'>";
         include ('./includes/style_bottom.php');
         exit();

  }
  if(!$_POST['add'])
  {
  $q_ry = array();
  $q_ry = "SELECT *
           FROM `members_items` mi
           LEFT JOIN `items` i
           ON mi.it_itemid = i.item_id
           WHERE mi.it_playerid = '".mysql_real_escape_string($_SESSION['playerid'])."'";
  $listem = array();
  $listem = mysql_query($q_ry);
  $le = array();
  echo "<table width = '750px' class = 'rounded'><tr><td align = 'center'>
        <table width = '100%'><tr bgcolor = #999999 style = 'font-weight:800;'><td>Item</td><td>Qty</td><td>Add</td>
        </tr>";
  $num=0;
  while($le = mysql_fetch_array($listem))
  {
                                         $num++;
                                         $odd="#D8D8D8";
                                         $even="#e3e3e3";
                                         if ($num % 2) {
                                         $color="$even";
                                         } else {
                                         $color="$odd";
                                         }
        echo "<form action = 'display.php?action=add' method = 'post'>
              <tr bgcolor = $color>
              <td align = 'left'>".htmlentities($le['item_name'])."</td>
              <td align = 'left'>".number_format($le['it_qty'])."</td>
              <td align = 'right'><input type = 'text' name = 'qty' value = ''>
                                  <input type = 'hidden' name = 'item' value = '".$le['it_ID']."'>
                                  <input type = 'submit' name = 'add' value = 'Add'></td></tr></form>";
  }
  echo "</table></td></tr></table>";
  }
  else
     {
       $_POST['item'] = abs(intval($_POST['item']));
       $_POST['qty'] = abs(intval($_POST['qty']));
       if(!$_POST['item'] || !$_POST['qty'])
       {
             echo "Error, Please go back and fill the form in correctly!<br/>
             <hr width='750px'>><a href=\"javascript:history.go(-1);\">Back</a><hr width='750px'>";
             include ('./includes/style_bottom.php');
             exit();
       }
       $q_ry = array();
       $q_ry = "SELECT *
                FROM `members_items` mi
                LEFT JOIN `items` i
                ON mi.it_itemid = i.item_id
                WHERE mi.it_ID = '".mysql_real_escape_string($_POST['item'])."'
                AND mi.it_playerid = '".mysql_real_escape_string($_SESSION['playerid'])."'";
       $mine = array();
       $mine = mysql_query($q_ry);
       if(!mysql_num_rows($mine))
       {
             echo "Error, Invalid item!<br/>
             <hr width='750px'>><a href=\"javascript:history.go(-1);\">Back</a><hr width='750px'>";
             include ('./includes/style_bottom.php');
             exit();
       }
       $m = array();
       $m = mysql_fetch_array($mine);
       if($_POST['qty'] > $m['it_qty'])
       {
             echo "Error, you dont have that many!<br/>
             <hr width='750px'>><a href=\"javascript:history.go(-1);\">Back</a><hr width='750px'>";
             include ('./includes/style_bottom.php');
             exit();
       }

            if($_POST['item'] && $_POST['qty'] && $_POST['add'] != 'Confirm')
            {
              echo "Are you sure you wish to add ".number_format($_POST['qty'])." <b>".htmlentities($m['item_name'])."(s)</b> to your display?<br/>
                <form action = 'display.php?action=add' method = 'post'>
                <input type = 'hidden' name = 'item' value = '".$_POST['item']."'>
                <input type = 'hidden' name = 'qty' value = '".$_POST['qty']."'>
                <input type = 'submit' name = 'add' value = 'Confirm'>
                </form>";
            }
            else
               {
                 if($_POST['item'] && $_POST['qty'] && $_POST['add'] == 'Confirm')
                 {

                   $q_ry = array();
                   $q_ry = "SELECT *
                            FROM `player_display_items`
                            WHERE `pdi_itemid` = '".mysql_real_escape_string($m['item_id'])."'
                            AND `pdi_playerid` = '".mysql_real_escape_string($_SESSION['playerid'])."'";
                   $alin = array();
                   $alin = mysql_query($q_ry);

                   if(!mysql_num_rows($alin))
                   {
                     $q_ry = array();
                     $q_ry = "INSERT INTO `player_display_items`
                              VALUES ('NULL',
                                      '".mysql_real_escape_string($_SESSION['playerid'])."',
                                      '".mysql_real_escape_string($m['item_id'])."',
                                      '".mysql_real_escape_string($_POST['qty'])."')";
                     mysql_query($q_ry);
                   }
                   else
                      {
                       $ai = array();
                       $ai = mysql_fetch_array($alin);
                       $q_ry = array();
                       $q_ry = "UPDATE `player_display_items`
                                SET `pdi_qty` = `pdi_qty` + '".mysql_real_escape_string($_POST['qty'])."'
                                WHERE `pdi_id` = '".mysql_real_escape_string($ai['pdi_id'])."'";
                       mysql_query($q_ry);
                      }
                   i_remove($_SESSION['playerid'], $m['item_id'], $_POST['qty']);
                   echo "Items added successfully!
                         <hr width='750px'>><a href='display.php?action=add'>Okay</a><hr width='750px'>";
                         include ('./includes/style_bottom.php');
                         exit();
           }
        }
     }
  }
Edited by jcvenom
Link to comment
Share on other sites

you are clearly retarded it does use ruthlesscity script instead i changed it alot and if you were not listening i didnt say i cant code i said i want to improve on my coding and since your a web developer i asked you so i dont know why your saying i can't code

- - - Updated - - -

 

thank you and your right a basic coder cant do what i can do and im still improving on my php im not a pro lol

Yes i'm so retarded, you asked me if you should learn to use loops and where to learn PHP. If you already knew even a little, surely you wouldn't need to ask me?

Link to comment
Share on other sites

Guy asked me where to learn PHP, he clearly didn't make this site nor is it his own work.

I agree with Ian, I also hired him to do some work for me and he said he would do and we agreed to a price but he has never gotten back to me.

Link to comment
Share on other sites

i did not pay a coder why would i waste money when all it takes is time and effort you guys can't be judging people's games every game on the site gets critised the first impressions is its made from mccodes people cop on

I was trying to defend you saying you could of hired a coder.

Locking this thread as this discussion is not related to the original post.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...