chaoswar4u Posted August 19, 2007 Posted August 19, 2007 I require this to be an item add line. mysql_query("insert into inventory VALUES('',$item,$winner,1)",$c) or die(mysql_error()) I currently have this - item_add($item,$winner,1); It dosent cause an error with my attempt but it dosent credit to the users inventory either. Can some please help point out my error. Many thx in advance. Quote
YoungGold Posted August 19, 2007 Posted August 19, 2007 Re: Small Problem. dont you need to dd item id or item name Quote
Isomerizer Posted August 19, 2007 Posted August 19, 2007 Re: Small Problem. I require this to be an item add line. mysql_query("insert into inventory VALUES('',$item,$winner,1)",$c) or die(mysql_error()) I currently have this - item_add($item,$winner,1); It dosent cause an error with my attempt but it dosent credit to the users inventory either. Can some please help point out my error. Many thx in advance. mysql_query("INSERT into inventory VALUES('', '$item', '$winner', '1'), $c) or die(mysql_error()); ? Quote
chaoswar4u Posted August 19, 2007 Author Posted August 19, 2007 Re: Small Problem. mysql_query("insert into inventory VALUES('',$item,$winner,1)",$c) or die(mysql_error()) is a line of code from v1 Isomerizer . I run v2 so i require that line to be a item_add so it autoquintifies the items back into users inventory. Quote
chaoswar4u Posted August 19, 2007 Author Posted August 19, 2007 Re: Small Problem. Duh figured it out. item_add($winner,$item,1); Thx for the replies anyways. 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.