Jump to content
MakeWebGames

Recommended Posts

Posted

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.

  • 7 months later...
Posted

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.

Posted

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.

Posted

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

Posted

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

Posted

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

Posted

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?

Posted

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.

  • 2 weeks later...
Posted

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

  • 9 months later...
Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...