Daron Posted June 18, 2011 Share Posted June 18, 2011 hello friends i coded somethings today, its an carnival where u play games & win points then go to the exchange center & trade the points for prizes. i have everything right except i only know how to query so that when they click buy prize it takes the points but i dont know how to query so that they get the item added to their inventory. can someone help me with query line for that or an example. Quote Link to comment Share on other sites More sharing options...
Uridium Posted June 18, 2011 Share Posted June 18, 2011 you can use item_add($userid, $r['imITEM'], 1); change the $r['imITEM'] to match your Query the 1 denotes the Quantity given Quote Link to comment Share on other sites More sharing options...
Uridium Posted June 18, 2011 Share Posted June 18, 2011 Another easy way is to look at how the itemmarket uses the functiion it will point you on the right lines. Quote Link to comment Share on other sites More sharing options...
Daron Posted June 18, 2011 Author Share Posted June 18, 2011 Good idea illusion thanx, I forgot item market has similar query. 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.