Veramys Posted May 15, 2012 Posted May 15, 2012 ok so I'm new here, I'm trying to learn to code, and I can't see anything wrong with this but maybe you can. When I use an item in my game it takes away 2 instead of 1 everytime I use an item. here is the code for itemuse.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
rulerofzu Posted May 15, 2012 Posted May 15, 2012 Well if you have a valid licence then why dont you download the latest mc2 version which doesnt have the problem. Quote
lucky3809 Posted May 15, 2012 Posted May 15, 2012 item_remove($userid, $r['inv_itemid'], 1); Looks right to me.. Post the item_remove function Quote
Veramys Posted May 17, 2012 Author Posted May 17, 2012 You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. ok thats the item remove function Quote
Uridium Posted May 17, 2012 Posted May 17, 2012 There is a similar problem here on MWG that your experiencing try doing a search for using double items or something else... is it doing this with all items or just ones in particular Quote
lucky3809 Posted May 19, 2012 Posted May 19, 2012 (edited) The item_remove is right. Do you have anything updating the inventory count in your header perhaps? OR in the inventory page? seems like there is another query updating the qty field. Read this thread: http://makewebgames.io/showthread.php/40305-item_add-and-item_remove-ISSUES?highlight=itemuse Edited May 19, 2012 by lucky3809 Quote
Newbie Posted May 20, 2012 Posted May 20, 2012 i had a problem like this when i was using firefox when i would do a crime it would do it 2 times try it out on different browsers Quote
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.