Shahed3639 Posted October 28, 2012 Share Posted October 28, 2012 (edited) (Idk if this is in the right forum but yeah) I need help atm with my game infamouswars.x10.mx I badly need help With hospital and jail I need a person to help me out for free Its quite hard for me. Im doing media for gcse so i choose to make a game. So can some one help me out pleasee Pleasse Inbox me. Edited October 28, 2012 by Shahed3639 Quote Link to comment Share on other sites More sharing options...
a_bertrand Posted October 28, 2012 Share Posted October 28, 2012 For which engine? McCode (sadly) I believe? And what exactly you need the help with? Quote Link to comment Share on other sites More sharing options...
Shahed3639 Posted October 28, 2012 Author Share Posted October 28, 2012 Its Mccode v1 well the Jail and hospital doesnt update for the members and it doesnt show people in jail or hospital And I get errors. Quote Link to comment Share on other sites More sharing options...
chicka Posted October 28, 2012 Share Posted October 28, 2012 what errors are you getting? Quote Link to comment Share on other sites More sharing options...
Shahed3639 Posted October 28, 2012 Author Share Posted October 28, 2012 (edited) In Item management the funtions dont work for some reason? When i add the funtions to global func It kills the whole game. So I have to take it off for the game to work Here is the function function inv_add($userid,$itemid,$itemtype,$itemname,$qty,$itemsellprice) { $invitem = mysql_query("SELECT * FROM inventory WHERE inv_userid={$userid} AND inv_item_id={$itemid} AND inv_item_type={$itemtype}"); if (mysql_num_rows($invitem) == 0) { mysql_query("INSERT INTO inventory VALUES ('',{$userid},{$itemid},{$itemtype},'{$itemname}',{$qty},{$itemsellprice})") or die(mysql_error()); } else { $inv = mysql_fetch_array($invitem); mysql_query("UPDATE inventory SET inv_item_qty=inv_item_qty+{$qty} WHERE inv_id={$inv['inv_id']}") or die(mysql_error()); } } function inv_del($userid,$invitem,$invtype,$qty) { $inventory = mysql_query("SELECT * FROM inventory WHERE inv_userid={$userid} AND inv_item_id={$invitem} AND inv_item_type={$invtype}"); $i = mysql_fetch_array($inventory); if ($i['inv_item_qty'] == 1) { mysql_query("DELETE FROM inventory WHERE inv_item_id={$i['inv_item_id']} AND inv_item_type={$i['inv_item_type']}") or die(mysql_error()); } else { mysql_query("UPDATE inventory SET inv_item_qty=inv_item_qty-{$qty} WHERE inv_item_id={$i['inv_item_id']} AND inv_item_type={$i['inv_item_type']}"); } } function att_log($attacker,$attacked,$result,$mugged) { mysql_query("INSERT INTO attacklogs VALUES ('',{$attacker},{$attacked},'{$result}',{$mugged},NOW())"); } function itemxfer_log($sender,$receiver,$itemtype,$itemid,$amount) { mysql_query("INSERT INTO item_xfers VALUES ('',{$sender},{$receiver},{$itemtype},{$itemid},{$amount},NOW())"); } function itembuy($buyer,$itemtype,$itemid,$amount) { mysql_query("INSERT INTO itembuy_log VALUES ('',{$buyer},{$itemtype},{$itemid},{$amount},NOW())"); } function market_log($seller,$buyer,$type,$item,$amount,$price,$currency) { mysql_query("INSERT INTO market_log VALUES ('',{$seller},{$buyer},{$type},{$item},{$amount},{$price},{$currency},NOW())"); } function auction_log($seller,$buyer,$type,$item,$price,$currency) { mysql_query("INSERT INTO auction_log VALUES ('',{$seller},{$buyer},{$type},{$item},{$price},{$currency},NOW())"); Edited October 28, 2012 by Shahed3639 Quote Link to comment Share on other sites More sharing options...
Shahed3639 Posted October 28, 2012 Author Share Posted October 28, 2012 and my hospital it says Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /home/infamo19/public_html/hospital.phpon line 53 and It doesnt update when someones In hospital. Quote Link to comment Share on other sites More sharing options...
Shahed3639 Posted October 28, 2012 Author Share Posted October 28, 2012 Bump!!!!!!!!!!!!!!!!!!!!!!! Quote Link to comment Share on other sites More sharing options...
a_bertrand Posted October 29, 2012 Share Posted October 29, 2012 Wrong section, not even setup a correct title, and bump after not even a day? No thanks, thread closed. Next time follow the rules. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.