Jump to content
MakeWebGames

jcvenom

Members
  • Posts

    575
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by jcvenom

  1. np but if you need any help converting message me
  2. its part of the engine - - - Updated - - - i dont think you paid for it because.. 1>Your trying to convert it to mccodes 2>Some links dont redirect which means you have the buggy version because i also have a copy of that (easy to fix) 3>If i ask icecoldcola will he confirm
  3. i just looked at your game you just copied some codes from the ruthless engine and pasted them, hmm i could help you would like help
  4. correct you code is completely messed up and you can type include "globals"; on top of the function as its not the start of the code so of course you will have errors you need to look at the full mod and convert it there
  5. i will see if i can convert it
  6. Try this   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! <hr width='750px'>><a href=\"javascript<b></b>: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! <hr width='750px'>><a href=\"javascript<b></b>: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! <hr width='750px'>><a href=\"javascript<b></b>: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! <hr width='750px'>><a href=\"javascript<b></b>: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? <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(); } } } }   - - - Updated - - - by the way why are you trying to convert ruthlesscity to mccodes it wont work
  7. 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(); } } } }
  8. 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
  9. 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
  10. jcvenom

    Crons

    I prefer to use crons because its easy and crons are mostly needed in games some games run on server time so it really depends on the game, engine, person really
  11. do you have the sql i need to have a look at it i think i have a solution because im not familiar with this script
  12. I can confirm that my game is not made from MCC it would be simply to hard to use mccodes and i made the skin and the login and nearly everything on game
  13. who whats there name
  14. 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
  15. I wish you good luck
  16. cronus can i talk to you mail me
  17. wont work has a few errors i will post fix
  18. what do you want me to make then
  19. i can code u one for cheap
  20. am i in know you said if i make you a contact script im in your group so i made a contact script for you using jquery, javascript, html, php and css for free i could hav charged you and all you saud was thanks now you want a horse racing script well im not making it because it takes my time and effort and i cant do it for free i want to be in first or your a scammer.
  21. jesus anothor mccodes game there all the same with mccode mods if u want to start a game make it unique somethimg different your game has a **** layout you dnt even have item pics i can code advanced and secure scripts mail me and check my profile about me by the way im working on two projects
  22. i can make one for 7 dollars
  23. hey guys i am venom im a developer and im looking to join a team or be hired I know know flash, jQuery, JS, AJAX, HTML5, HTML, Php, MySQL, CSS3 and visual basic andif you are interested i can show you some of my work i am cheap so im looking for reply
  24.   I now know flash, jQuery, JS, AJAX, HTML5, HTML, Php, MySQL, CSS3 and visual basic
×
×
  • Create New...