Jump to content
MakeWebGames

Shops item stock - as requested (Not Tested)


radio_active

Recommended Posts

Re: [MCcode v2] Shops item stock - as requested (Not Tested)

 

I can't help myself I have to say it

Can't we all just get along??

what is it with people in the forums these days ??

my thoughts exactly i was only trying to explain in a little more detail something he had missed out and he jumped on me...

sex mad you are pog1...

Link to comment
Share on other sites

Re: [MCcode v2] Shops item stock - as requested (Not Tested)

 

Could someone PM or post the whole code? These many alterations and things that have confused me!

Thanks

Okay i have woken up now, im awake and i found the errors...

Replace with these

itembuy.php

You're unable to view this code.

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

 

and

shops.php

 

You're unable to view this code.

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

 

I just tested that, so it works... If you find any problems, post error.

AND FOR THE CRON, USE THIS INSTEAD, THIS WILL ONLY UPDATE STOCKS AT 0.

You're unable to view this code.

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

 

FOR THE SQL USE

 

You're unable to view this code.

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

 

ENJOY

 

This would be so much easier if i could edit the first post.

Everything in that quote there will run the script... Everything from that post after are alterations to the Staff Panel etc, you can work them out on your own.

But because im a nice chap, this is one OPTIONAL ADD ON to the ITEMSELL.PHP, basically means if an item is sold it will update in the shop which sells that item..

Shop Quantity = 10

*Someone sells 15 of that item.

Shop Quantity = 25

 

You're unable to view this code.

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

 

You add that under the item_remove funtion..

The staff_shops.php is one of the last posts on the second page.

Link to comment
Share on other sites

  • 4 years later...

i know this is old but its good, i;m having a little problem,

it all works except to the point where you cant buy no more items as there aint none, well it dont happen, it just lets you buy more making the Shop qty into negative,

This is what i have so far.

 

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

  • 3 years later...

I do not understand a single bit of java so here's my shop page

 

You're unable to view this code.

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

 

Error is

Parse error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING)

Basically where the table starts on the view shop part.

Link to comment
Share on other sites

I do not understand a single bit of java so here's my shop page

 

You're unable to view this code.

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

 

Error is

Parse error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING)

Basically where the table starts on the view shop part.

 

1) You're missing the line number the error reports it's on

2) Java and Javascript are totally different. This isn't Java.

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.

×
×
  • Create New...