classified Posted February 24, 2015 Share Posted February 24, 2015 ok so today my problem is that I cant figure out how to add a item to a users inventory from a db query. I know some people might be like *** is this guy doing lol but anyway I want to have items that are buyable but not from the shops page. ive tried so many different db query's now I don't even know what to post to show ive tried stuff lol, im not asking for someone to write a code or anything just maybe point me in the right direction or to a resource that could help me figure this out. thanks in advance for the info Quote Link to comment Share on other sites More sharing options...
AdamHull Posted February 24, 2015 Share Posted February 24, 2015 I know you said you don't know what to post as in code wise. But just post what you have tried and I am sure that someone will be able to tell you if your close or not, and how will the players be buying this item? Are you wanting to do this from the staff panel or is there going to be some way of you allowing to buy the item, like through the donation system? Quote Link to comment Share on other sites More sharing options...
KyleMassacre Posted February 24, 2015 Share Posted February 24, 2015 I'll give you a hint: global_funcs.php Quote Link to comment Share on other sites More sharing options...
Coly010 Posted February 24, 2015 Share Posted February 24, 2015 there is a very simple function that you can do to add an item to a users inventory: item_add($userid, $itmid, $qty); if i can remember from the top of my head Quote Link to comment Share on other sites More sharing options...
classified Posted February 25, 2015 Author Share Posted February 25, 2015 ok I got I figured out now global functions had the answers I was looking for, thanks very much for all the help guys :) coly010 you are right with the item_add 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.