Jump to content
MakeWebGames

Item Market Problem???


jackoffjill
 Share

Recommended Posts

Fatal error: Cannot redeclare item_remove() (previously declared in /home/violence/public_html/itemmarket.php:48) in /home/violence/public_html/global_func.php on line 339

That is the error i get when i click on Item Market in explore.

can anyone tell me how to fix this (im using mccodes V2)

cheers,

Violent A

Link to comment
Share on other sites

Re: Item Market Problem???

Most likely you have that function defined twice.

function item_remove() {

 

something like that is probably in your script twice. Removing one of them will likely solve the problem.

If that doesn't do it, there's one more thing that may be causing it.

And as funny as this may sound, I've seen it happen. If you have your switch at the top of the script, before you define your functions, it's possible that error can happen. The simply solution to that is moving your functions before the rest of your code.

But it's far more likely that it's the first problem that is the cause.

Link to comment
Share on other sites

Guest Anonymous

Re: Item Market Problem???

In your item market file...

find.

case "remove":

item_remove();

break;

replace.

case "remove":

itemm_remove();

break;

find.

function item_remove()

{

Replace.

function itemm_remove()

{

Should work.

Link to comment
Share on other sites

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.

 Share

×
×
  • Create New...