Jump to content
MakeWebGames

[mccode v2] Display Cabinet


KiX

Recommended Posts

I don't know if this was made already, but here it is. I made this mostly from scratch, taking a bit of code from the inventory. But mostly I made it. I know you can tweak it to make it better, but It is good for our needs. So here it goes.

First make a file called display.php

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Make a file called displayadd.php

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Make a file called displayrem.php

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

**Find inventory.php**

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

and add underneath

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

**Find in viewuser.php**

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

and replace with

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

SQL query

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Hope you like it. I have added itmpics from another mod I use. I don't remember who made it, but it is available here as well. Enjoy it!

Link to comment
Share on other sites

Re: [mccode v2] Display Cabinet

 

Yes this was a paid mod by Cronus Tezza,

I'm not sure i think he later released it free check his website,

either way it should be removed especially if it is still a paid mod.

Can't get on his website atm, ill have to wait till he comes on msn, to confirm.

Link to comment
Share on other sites

Re: [mccode v2] Display Cabinet

 

`*` bad... how many times do i have to post this to people before they get it into their heads...

Your like me Zero :P, you hate them.... and i dont stop banging on about tables :P

lol. how can i edit if my ip is different. It won't let me edit it out :(

Link to comment
Share on other sites

Re: [mccode v2] Display Cabinet

 

Only thing I noticed was it lets a player go negative. So a little snippet needs to be added to tell them they dont have enough crystals.

Good point. Here is the fix for that.

find this code in display.php

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

and replace with

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Remember that you need to change credits for crystals for it to work for you.

Link to comment
Share on other sites

Re: [mccode v2] Display Cabinet

 

Parse error: syntax error, unexpected T_ELSE in /home/ml/public_html/display.php on line 77

 

I will just paste the entire code, because I am not getting any errors

display.php

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Link to comment
Share on other sites

Re: [mccode v2] Display Cabinet

Hi can anyone help me with this please.

When I go onto viewuser then click on Diplay Cabnet, I get an error on the display.php

This error is on the page:

QUERY ERROR: Table 'admindb.display' doesn't exist

Query was SELECT * FROM display WHERE disp_userid=1

If anyone can help then Thank you!

Link to comment
Share on other sites

Re: [mccode v2] Display Cabinet

 

Hi can anyone help me with this please.

When I go onto viewuser then click on Diplay Cabnet, I get an error on the display.php

This error is on the page:

QUERY ERROR: Table 'admindb.display' doesn't exist

Query was SELECT * FROM display WHERE disp_userid=1

If anyone can help then Thank you!

Well apparently you did not create the table. did u run the SQL info I put in the post?

Link to comment
Share on other sites

  • 3 weeks later...

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...