EineyEntertainment Posted March 3, 2009 Posted March 3, 2009 I'd like to make it so that items received will stack in your inventory. currently if you gain a new item, it doesn't stack. Anyone know what I can do to change that? Quote
AlabamaHit Posted March 3, 2009 Posted March 3, 2009 Re: Getting items to stack umm.... by "stack" you mean med X2 instead of med med ?? is that what you mean? If so are you using v2? If v2 then instead of $db->query("INSERT INTO INVETORY") use the function in the game... item_add(USERID, ITEMID, QTY); if your not using v2 that wont work. Hope this helps. Quote
EineyEntertainment Posted March 4, 2009 Author Posted March 4, 2009 Re: Getting items to stack I don't think I entered the code right cus I'm getting a Query error, I was using $db->query("INSERT INTO inventory VALUES('',$itemidexplore,$userid,1)",$c); I tried $db->query("item_add ('',$itemidexplore,$userid,1)",$c); any help? Sorry for being so needy Bama :( Fixed it! Lol ty for the help though /hug to bama :) 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.