Zero-Affect Posted January 4, 2009 Share Posted January 4, 2009 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... Quote Link to comment Share on other sites More sharing options...
Karlos Posted January 4, 2009 Share Posted January 4, 2009 Re: [MCcode v2] Shops item stock - as requested (Not Tested) I read both of your explanations and it makes more sense to me. Thanks Pog and Zero Quote Link to comment Share on other sites More sharing options...
Zero-Affect Posted January 4, 2009 Share Posted January 4, 2009 Re: [MCcode v2] Shops item stock - as requested (Not Tested) I read both of your explanations and it makes more sense to me. Thanks Pog and Zero your very welcome we both hit on key parts im sure Quote Link to comment Share on other sites More sharing options...
Dylan Posted January 4, 2009 Share Posted January 4, 2009 Re: [MCcode v2] Shops item stock - as requested (Not Tested) I like it, thanks! :-D Quote Link to comment Share on other sites More sharing options...
radio_active Posted January 4, 2009 Author Share Posted January 4, 2009 Re: [MCcode v2] Shops item stock - as requested (Not Tested) No worries, glad you do! Enjoy :wink: Quote Link to comment Share on other sites More sharing options...
Dazza Posted January 5, 2009 Share Posted January 5, 2009 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 Quote Link to comment Share on other sites More sharing options...
Karlos Posted January 5, 2009 Share Posted January 5, 2009 Re: [MCcode v2] Shops item stock - as requested (Not Tested) Put the original code in...then replace the bits which altered code... Quote Link to comment Share on other sites More sharing options...
John99 Posted January 5, 2009 Share Posted January 5, 2009 Re: [MCcode v2] Shops item stock - as requested (Not Tested) Lol ! some people are dumb theses days "Karlos" o.j lol Quote Link to comment Share on other sites More sharing options...
radio_active Posted January 5, 2009 Author Share Posted January 5, 2009 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. Quote Link to comment Share on other sites More sharing options...
John99 Posted January 5, 2009 Share Posted January 5, 2009 Re: [MCcode v2] Shops item stock - as requested (Not Tested) Yup xD still good eh ? Quote Link to comment Share on other sites More sharing options...
radio_active Posted January 5, 2009 Author Share Posted January 5, 2009 Re: [MCcode v2] Shops item stock - as requested (Not Tested) Yup xD still good eh ? What??? :? Quote Link to comment Share on other sites More sharing options...
John99 Posted January 5, 2009 Share Posted January 5, 2009 Re: [MCcode v2] Shops item stock - as requested (Not Tested) Yup xD still good eh ? What??? :? F**k didnt mean to say that, sorry. Quote Link to comment Share on other sites More sharing options...
radio_active Posted January 5, 2009 Author Share Posted January 5, 2009 Re: [MCcode v2] Shops item stock - as requested (Not Tested) Hmmm Fair enough, i guess we will just move on then! :-) Quote Link to comment Share on other sites More sharing options...
Dazza Posted January 5, 2009 Share Posted January 5, 2009 Re: [MCcode v2] Shops item stock - as requested (Not Tested) +1 Thanks very much :-D Quote Link to comment Share on other sites More sharing options...
radio_active Posted January 5, 2009 Author Share Posted January 5, 2009 Re: [MCcode v2] Shops item stock - as requested (Not Tested) +1 Thanks very much :-D No Problem, enjoy ; ) Quote Link to comment Share on other sites More sharing options...
peterisgb Posted March 19, 2013 Share Posted March 19, 2013 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. Quote Link to comment Share on other sites More sharing options...
peterisgb Posted March 19, 2013 Share Posted March 19, 2013 You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. This still presents the same error. you can still buy 50 of X item when there is only 20 stock ending total stock being -30 <- it shouldnt go negative nor should it allow to be negative. Quote Link to comment Share on other sites More sharing options...
peterisgb Posted March 19, 2013 Share Posted March 19, 2013 i dont even know how to debug, how to you print a qty array? Quote Link to comment Share on other sites More sharing options...
KyleMassacre Posted March 19, 2013 Share Posted March 19, 2013 i dont even know how to debug, how to you print a qty array? You can try var_dump($qty); or print_r($qty); inside you else if statement Quote Link to comment Share on other sites More sharing options...
peterisgb Posted March 19, 2013 Share Posted March 19, 2013 Fixed. Fiddled around with it. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote Link to comment Share on other sites More sharing options...
KyleMassacre Posted March 20, 2013 Share Posted March 20, 2013 You should look up preg_match() instead of ereg() for the future or use the top 3 lines that guest used cause as of php ver. 5.3 ereg is depreciated Quote Link to comment Share on other sites More sharing options...
boionfire81 Posted May 23, 2016 Share Posted May 23, 2016 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. Quote Link to comment Share on other sites More sharing options...
sniko Posted May 24, 2016 Share Posted May 24, 2016 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. Quote Link to comment Share on other sites More sharing options...
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.