Daron Posted June 18, 2011 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
Uridium Posted June 18, 2011 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
Uridium Posted June 18, 2011 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
Daron Posted June 18, 2011 Author Posted June 18, 2011 Good idea illusion thanx, I forgot item market has similar query. 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.