nanolimit Posted November 25, 2007 Share Posted November 25, 2007 Re: [mccode] quantify items automatically ^ Thats what I ment (should be more clear) So my header in inventory.php looks like this: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote Link to comment Share on other sites More sharing options...
UCC Posted November 25, 2007 Share Posted November 25, 2007 Re: [mccode] quantify items automatically Um Excuse me, but why are you using such a script on 2.0? Mc Codes 2.0 does not need auto-grouping. Use the built in item_add() and item_remove() functions. But if you insist for god knows what random reason, you cannot use V1.1 queries such as mysql_query in a V 2.0 environment. Quote Link to comment Share on other sites More sharing options...
nanolimit Posted November 25, 2007 Share Posted November 25, 2007 Re: [mccode] quantify items automatically Um Excuse me, but why are you using such a script on 2.0? Mc Codes 2.0 does not need auto-grouping. Use the built in item_add() and item_remove() functions. But if you insist for god knows what random reason, you cannot use V1.1 queries such as mysql_query in a V 2.0 environment. The above post said it worked on v2, thats why :? Is there a v2 quantifier(paid or free, if paid where do I purchase it from)? Quote Link to comment Share on other sites More sharing options...
UCC Posted November 25, 2007 Share Posted November 25, 2007 Re: [mccode] quantify items automatically You're not understanding. There is absolutely no need for a quantifier for Version 2.0. The engine has a built in item_add and item_remove functions. Look at any of the item-related source codes if you cant figure out how to use them. itemsend.php will show you how its done Quote Link to comment Share on other sites More sharing options...
shaved92bravada Posted February 3, 2008 Share Posted February 3, 2008 Re: [mccode] quantify items automatically anyone ever make a more efficient auto quantify for V1?? Quote Link to comment Share on other sites More sharing options...
jeeppimp Posted February 21, 2008 Share Posted February 21, 2008 Re: [mccode] quantify items automatically :-D Quote Link to comment Share on other sites More sharing options...
redhead Posted March 22, 2008 Share Posted March 22, 2008 Re: [mccode] quantify items automatically You're not understanding. There is absolutely no need for a quantifier for Version 2.0. The engine has a built in item_add and item_remove functions. Look at any of the item-related source codes if you cant figure out how to use them. itemsend.php will show you how its done Incase you're new and searching the forums trying to find the answer ... This is what worked for me (I'm not an experienced coder, so hopefully a polite one will fix any problems with it). You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. 5 corresponds to your item ID. The easiest way for me to find this would be to click on the item's Info link and take a look at the address in my address bar. After your website name will be "/iteminfo.php?ID=5". Whatever the ID= is, will be your item id. 1 corresponds to the quantity of items you want the player to recieve. Quote Link to comment Share on other sites More sharing options...
Guest Anonymous Posted March 22, 2008 Share Posted March 22, 2008 Re: [mccode] quantify items automatically And you don't want to use item_send.... Look at the documentation for INSERT .... ON DUPLICATE KEY UPDATE ... in the MySQL manual Quote Link to comment Share on other sites More sharing options...
illegalife Posted November 11, 2008 Share Posted November 11, 2008 Re: [mccode] quantify items automatically Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/illegali/public_html/inventory.php on line 6 Line 6: $gotitem = mysql_num_rows($lol2); How come??? Quote Link to comment Share on other sites More sharing options...
Becon Posted May 18, 2009 Share Posted May 18, 2009 Re: [mccode] quantify items automatically Yeah illegalife...Im getting that same error. Quote Link to comment Share on other sites More sharing options...
Dekrypt Posted October 17, 2013 Share Posted October 17, 2013 well excuse me sorry i am a noob line 125 is } $h->endpage(); ?> Don't know if this was pointed out but try: } $h->endpage(); exit; ?> I'm new to coding so that may be wrong but worth a shot :) 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.