Jump to content
MakeWebGames

Strange problem in V2


Jesse60905

Recommended Posts

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)
{
Link to comment
Share on other sites

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();
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...