chaoswar4u Posted August 19, 2007 Share 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 Link to comment Share on other sites More sharing options...
YoungGold Posted August 19, 2007 Share Posted August 19, 2007 Re: Small Problem. dont you need to dd item id or item name Quote Link to comment Share on other sites More sharing options...
Isomerizer Posted August 19, 2007 Share 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 Link to comment Share on other sites More sharing options...
chaoswar4u Posted August 19, 2007 Author Share 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 Link to comment Share on other sites More sharing options...
chaoswar4u Posted August 19, 2007 Author Share Posted August 19, 2007 Re: Small Problem. Duh figured it out. item_add($winner,$item,1); Thx for the replies anyways. 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.