Jesse60905 Posted July 12, 2007 Share Posted July 12, 2007 Ok I am still learning to be a coder but I can usually fix bugs but I can't figure out this 1... When trying to remove any item from the item market I get: Warning: Missing argument 1 for item_remove(), called in /home/supercou/public_html/itemmarket.php on line 19 and defined in /home/supercou/public_html/global_func.php on line 323 Warning: Missing argument 2 for item_remove(), called in /home/supercou/public_html/itemmarket.php on line 19 and defined in /home/supercou/public_html/global_func.php on line 323 Warning: Missing argument 3 for item_remove(), called in /home/supercou/public_html/itemmarket.php on line 19 and defined in /home/supercou/public_html/global_func.php on line 323 QUERY ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND inv_itemid=' at line 1 Query was SELECT * FROM inventory WHERE inv_userid= AND inv_itemid= This is line 18-20 in itemmarket.php case "remove": item_remove(); break; This is line 322-324 in global_func.php } function item_remove($user, $itemid, $qty) { Quote Link to comment Share on other sites More sharing options...
seanybob Posted July 12, 2007 Share Posted July 12, 2007 Re: Strange problem in V2 this thread may help you http://criminalexistence.com/ceforums/i ... pic=3686.0 Quote Link to comment Share on other sites More sharing options...
Dabomstew Posted July 12, 2007 Share Posted July 12, 2007 Re: Strange problem in V2 NO, that fix posted there is bad. It actually removes the item_remove function in itemmarket.php so you cant take items off the itemmarket! Use this fix instead (on a clean v2 itemmarket.php with the redeclaring glitch still there): Find: function item_remove() Replace With: function itemm_remove() Find: case "remove": item_remove(); Replace With: case "remove": itemm_remove(); Quote Link to comment Share on other sites More sharing options...
Jesse60905 Posted July 13, 2007 Author Share Posted July 13, 2007 Re: Strange problem in V2 Ya I was thinking of that but now it looks better. And seanybob I looked at tht topic b4 I posted this and it didn't help. Thx. 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.