seanybob Posted September 17, 2006 Share Posted September 17, 2006 heres a simple script that quantifies a users items everytime they look at their inventory, so for all intents and purposes, there items are always quantified :) inventory.php find You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. after it add You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. change the 74 to whatever the highest itemID you have is. im sure that somebody could make this script more efficient, but here it is lol the $h = 2 does absolutely nothing, i just didnt know what to put there, or if i could leave it blank :) Quote Link to comment Share on other sites More sharing options...
Dabomstew Posted September 17, 2006 Share Posted September 17, 2006 quantify items automatically Holy crap, that adds up to 222 queries to a inventory pageload. Nice try, but a very inefficient script I wouldn't recommend unless you have a really inactive game. Quote Link to comment Share on other sites More sharing options...
seanybob Posted September 17, 2006 Author Share Posted September 17, 2006 quantify items automatically lol, ok i figured there was something wrong with it Quote Link to comment Share on other sites More sharing options...
seanybob Posted September 17, 2006 Author Share Posted September 17, 2006 quantify items automatically ok so instead of that script above, what if everywhere i add items to a user i put something like this instead 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...
canibalstew Posted January 3, 2007 Share Posted January 3, 2007 Re: quantify items automatically i keep getting this error can anyone help PLEASE Fatal error: Call to a member function on a non-object in public_html/battlecreekmafia/inventory.php on line 125 Quote Link to comment Share on other sites More sharing options...
seanybob Posted January 3, 2007 Author Share Posted January 3, 2007 Re: quantify items automatically aye friggin caramba... please people... if you are getting errors... saying o hey i get an error on line 125 doesn't help us help you! now this helps: 124 if(noob==0) 125 { 126 print"error no noobs present"; post the line that the error is said to be on, as well as the line before and after. thank you v.v Quote Link to comment Share on other sites More sharing options...
Revolution Posted January 3, 2007 Share Posted January 3, 2007 Re: quantify items automatically lol Quote Link to comment Share on other sites More sharing options...
canibalstew Posted January 3, 2007 Share Posted January 3, 2007 Re: quantify items automatically well excuse me sorry i am a noob line 125 is } $h->endpage(); ?> man thats really messed up when u guys pick on the noobs aint right but haha hahahahahaha i will laugh with ya too since i am the butt of these remarks!!!! :| :| :| :| :| :| :| :| :| :| :| :| :| :| :| :| :| :| :| :| :| :| :| :| :| :| :| :| :| :| :| :| :| :| :| :| Quote Link to comment Share on other sites More sharing options...
seanybob Posted January 3, 2007 Author Share Posted January 3, 2007 Re: quantify items automatically sry canibal I was irrated earlier :) no worries m8? as for that, it means you are missing a curly brace } somewhere... I would scour your code, matching up all the curlies to find the missing one m8 Quote Link to comment Share on other sites More sharing options...
canibalstew Posted January 3, 2007 Share Posted January 3, 2007 Re: quantify items automatically no worries i was too thanx will do ok got it when you have ver 2.0 you change $h=2; to $h = new headers; but if anyone one can help me out with some other bugs i really need the help cant state the problems until we talk thanx Mr.BOB Quote Link to comment Share on other sites More sharing options...
trulu Posted May 6, 2007 Share Posted May 6, 2007 Re: [mccode] quantify items automatically i've the same problem >.< any idea bout this? Thanks Quote Link to comment Share on other sites More sharing options...
Magictallguy Posted July 17, 2007 Share Posted July 17, 2007 Re: [mccode] quantify items automatically aye friggin caramba... please people... if you are getting errors... saying o hey i get an error on line 125 doesn't help us help you! now this helps: 124 if(noob==0) 125 { 126 print"error no noobs present"; post the line that the error is said to be on, as well as the line before and after. thank you v.v Haha +1 for that...Needed to laugh! Quote Link to comment Share on other sites More sharing options...
Isomerizer Posted October 16, 2007 Share Posted October 16, 2007 Re: [mccode] quantify items automatically Anyone ever create a efficient auto quantify script? Quote Link to comment Share on other sites More sharing options...
Tezza` Posted October 30, 2007 Share Posted October 30, 2007 Re: [mccode] quantify items automatically Lol i never did like the quantify mod. <_< Quote Link to comment Share on other sites More sharing options...
Klikoka Posted November 4, 2007 Share Posted November 4, 2007 Re: [mccode] quantify items automatically it makes the inventory look bigger without it so its a nice add Quote Link to comment Share on other sites More sharing options...
tahmid Posted November 16, 2007 Share Posted November 16, 2007 Re: [mccode] quantify items automatically it doesn't work, can you please list the correct coding exactly becoz itz too confusing :? :-o :roll: :| :mrgreen: Quote Link to comment Share on other sites More sharing options...
Blackdogg Posted November 17, 2007 Share Posted November 17, 2007 Re: [mccode] quantify items automatically plus 1 works brilliant Quote Link to comment Share on other sites More sharing options...
HITMAN 17 Posted November 17, 2007 Share Posted November 17, 2007 Re: [mccode] quantify items automatically v2 heres a simple script that quantifies a users items everytime they look at their inventory, so for all intents and purposes, there items are always quantified :) inventory.php find You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. after it add You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. change the 74 to whatever the highest itemID you have is. Quote Link to comment Share on other sites More sharing options...
Isomerizer Posted November 17, 2007 Share Posted November 17, 2007 Re: [mccode] quantify items automatically v2 heres a simple script that quantifies a users items everytime they look at their inventory, so for all intents and purposes, there items are always quantified :) inventory.php find You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. after it add You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. change the 74 to whatever the highest itemID you have is. For v2, im sure there is no $h->menuarea();. So they'd have to add it after require("globals.php"); Quote Link to comment Share on other sites More sharing options...
gurpreet Posted November 17, 2007 Share Posted November 17, 2007 Re: [mccode] quantify items automatically v2 heres a simple script that quantifies a users items everytime they look at their inventory, so for all intents and purposes, there items are always quantified :) inventory.php find You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. after it add You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. change the 74 to whatever the highest itemID you have is. For v2, im sure there is no $h->menuarea();. So they'd have to add it after require("globals.php"); True and is it while ($i=$db->queryfetch_array($item)) anyways. I thought its $db->query fetch_array. AND why post this im using the v1 version posted by seany on my v2 game and its fine.. Quote Link to comment Share on other sites More sharing options...
HITMAN 17 Posted November 18, 2007 Share Posted November 18, 2007 Re: quantify items automatically this also works for v2 just post it after include "globals.php"; 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...
gurpreet Posted November 18, 2007 Share Posted November 18, 2007 Re: quantify items automatically this also works for v2 just post it before include "globals.php"; You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. No its post after include "globals.php" Quote Link to comment Share on other sites More sharing options...
HITMAN 17 Posted November 19, 2007 Share Posted November 19, 2007 Re: [mccode] quantify items automatically ye sorry lol i ment after Quote Link to comment Share on other sites More sharing options...
nanolimit Posted November 24, 2007 Share Posted November 24, 2007 Re: [mccode] quantify items automatically The above V2 isn't working for me :? Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /public_html/inventory.php on line 5 Added after global.php Any ideas? Quote Link to comment Share on other sites More sharing options...
gurpreet Posted November 24, 2007 Share Posted November 24, 2007 Re: [mccode] quantify items automatically try globals.php iwth the s 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.