Curt Posted November 9, 2009 Posted November 9, 2009 I made a simple downtown search where you can add items by there commonness... 3 types of items : Common Items, Rare Items, Super Rare Items also you can find money and points...I coded this from scratch... ***FILE HAS TO BE EDITED TO WORK WITH YOUR GAME -- COMMENTS TELL YOU WHAT NEED TO BE EDITED*** You just have to add you item ID to the arrays...simple :P also i believe it is secure aswell :D enjoy :D You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
VitalEnd Posted June 27, 2010 Posted June 27, 2010 BUMP I know this is old, but this is just what people are still looking for and cannot find ths so im bumping it, GREAT MOD MAN NICE WORK. Only one problem ... If you search say ... 100 times. And then refresh .. you will go into minus searches. So .. little error there needs to be fixed, ill have a go and if i succeed ill post up the fix here. Quote
VitalEnd Posted June 27, 2010 Posted June 27, 2010 Fixed ... Ok i added a function so that if you post more searches then you have then it displays a message saying you do not have that man ysearches ... You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Curt Posted June 27, 2010 Author Posted June 27, 2010 lol....damn this was one of the first mods i posted :P....lol As some of you will notice the noob coding... $_GET['action'] = mysql_real_escape_string($_GET['action']); lol...glad to say i have improved since this :P thanks glad you like it :) Cheers Quote
Equinox Posted June 28, 2010 Posted June 28, 2010 You think the You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Is the only 'nooby' thing you done? Quote
Curt Posted June 28, 2010 Author Posted June 28, 2010 of course not, this mod was one of the first mods I have ever made, its filled with noob coding.... is that a problem for you ?...if it is fix it then...lol Quote
Equinox Posted June 28, 2010 Posted June 28, 2010 It's not a problem for me, no. I don't use McCodes, but still I like to help. I would've done it my way and showed you a better way of going about this, but you obviously can't take criticism Quote
jds137 Posted June 29, 2010 Posted June 29, 2010 Shucks lets not fight. I wanna see the better way of doing this mod!! Quote
jds137 Posted July 1, 2010 Posted July 1, 2010 8 : QUERY ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '2,1)' at line 1 Query was INSERT INTO inventory VALUES('',,2,1) Is an error I received adding this. Any thoughts on it? Quote
Uridium Posted July 1, 2010 Posted July 1, 2010 Had the same problem as JDS on my testsite so made a few alterations.. Pointe = crystals fixed deadlink. changed last inventory chance to rip and ripa instead of ri and ria.. Works fine.. named file = searchdowntown.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
jds137 Posted July 1, 2010 Posted July 1, 2010 Works great now that you fixed it. Great work as usual. 8| 8| 8| 8| 8| 8| 8| Quote
jds137 Posted July 11, 2010 Posted July 11, 2010 New Error Warning: array_rand() [function.array-rand]: First argument has to be an array in /home/slaversd/public_html/searchdowntown.php on line 217 QUERY ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '7,1)' at line 1 Query was INSERT INTO inventory VALUES('',,7,1) Other than that it works Quote
Curt Posted July 11, 2010 Author Posted July 11, 2010 Line 217 - $ripa = array_rand($ri,1) Try changing it to : $ripa = array_rand($rip,1) see if that works for you :) Quote
jds137 Posted July 12, 2010 Posted July 12, 2010 It seems to work. I will test more and let you know. t/y Quote
DELETE-ME-NOW- Posted July 12, 2010 Posted July 12, 2010 Isnt there a cron day code for this? Because ive added it, and it always says you have 0 searches left for today. Quote
VitalEnd Posted July 12, 2010 Posted July 12, 2010 Cron line for updating searches You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Uridium Posted July 12, 2010 Posted July 12, 2010 For those who have this if your searches exceed 100 then for some reason JDS reported error will occur Quote
shinobi Posted April 24, 2011 Posted April 24, 2011 Search Really nice mod Curt but when i click search after typing 100 nothing comes up ... its a blank white page how can i fix this Quote
Curt Posted April 26, 2011 Author Posted April 26, 2011 hey shiniobi, what version of mccodes are you using ?...this mod was made using mccode v2 but could be converted to V1 easily.. Also I will update this mod so that players dont enter an amount of times to search, instead it searches all turns when they visit the page instead. 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.