-BRAIDZ- Posted May 27, 2015 Share Posted May 27, 2015 Now for installing the mod: Step 1: Run this SQL: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Should the sql be? 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...
-BRAIDZ- Posted May 27, 2015 Share Posted May 27, 2015 06-01-2010, 01:50 am :( what about the time? Quote Link to comment Share on other sites More sharing options...
sniko Posted May 27, 2015 Share Posted May 27, 2015 what about the time? Because you bumped a thread when it was last active 5 years ago. 3 years old if we count this reply. But still, it's a useless bump :) Quote Link to comment Share on other sites More sharing options...
-BRAIDZ- Posted May 27, 2015 Share Posted May 27, 2015 Because you bumped a thread when it was last active 5 years ago. 3 years old if we count this reply. But still, it's a useless bump :) Last comment before mine was about 2 and a half years ago. I noticed no one fixed it up for them. And I could see what the problem was, and also I'm putting this in my game just making a few small edits Quote Link to comment Share on other sites More sharing options...
Coly010 Posted May 27, 2015 Share Posted May 27, 2015 Should the sql be? You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Not necessarily, the original should run fine. You don't need to constantly add ALTER TABLE as it is using commas after every add, signalling a new alter command. It's like running the code: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. That SQL could be written on multiple lines like so and still work: 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...
-BRAIDZ- Posted May 27, 2015 Share Posted May 27, 2015 Not necessarily, the original should run fine. You don't need to constantly add ALTER TABLE as it is using commas after every add, signalling a new alter command. It's like running the code: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. That SQL could be written on multiple lines like so and still work: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Yeah true, it wwouldn't insert into my database unless I executed the way i displayed here, except I changed the commas to ; and away it went. Now when I added "clubbing.php" - "club.php" was returning as a blank page, only showing the header.. What could be causing this Quote Link to comment Share on other sites More sharing options...
NonStopCoding Posted May 27, 2015 Share Posted May 27, 2015 (edited) Yeah true, it wwouldn't insert into my database unless I executed the way i displayed here, except I changed the commas to ; and away it went. Now when I added "clubbing.php" - "club.php" was returning as a blank page, only showing the header.. What could be causing this turn error reporting on and it should show the error? also this mod is using up to 5 new fields in the users table which already has enough in it me personally i would of used a new table for it but that's just my 2 cents EDIT: from looking at clubbing the code is messed up look for stuff that don't look right for example You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. there should only be a open and close You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. i only got down about 20 lines but could be more issues causing blank screen Edited May 27, 2015 by NonStopCoding Quote Link to comment Share on other sites More sharing options...
-BRAIDZ- Posted May 27, 2015 Share Posted May 27, 2015 turn error reporting on and it should show the error? also this mod is using up to 5 new fields in the users table which already has enough in it me personally i would of used a new table for it but that's just my 2 cents EDIT: from looking at clubbing the code is messed up look for stuff that don't look right for example You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. there should only be a open and close You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. i only got down about 20 lines but could be more issues causing blank screen Okay thanks, I will have to have a look Quote Link to comment Share on other sites More sharing options...
NonStopCoding Posted May 27, 2015 Share Posted May 27, 2015 (edited) Okay thanks, I will have to have a look which version of mccodes are you using? EDIT: dunno about older versions of mccodes but in v2.05b you can go to lib/basic_error_handler.php and find this You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. set it to true to turn on error reporting Edited May 27, 2015 by NonStopCoding Quote Link to comment Share on other sites More sharing options...
sniko Posted May 27, 2015 Share Posted May 27, 2015 which version of mccodes are you using? EDIT: dunno about older versions of mccodes but in v2.05b you can go to lib/basic_error_handler.php and find this You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. set it to true to turn on error reporting Or... you know.... You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. ;) Personally, I dislike the error handler that is shipped - might drop my custom one if there is enough interest Quote Link to comment Share on other sites More sharing options...
NonStopCoding Posted May 27, 2015 Share Posted May 27, 2015 Or... you know.... You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. ;) Personally, I dislike the error handler that is shipped - might drop my custom one if there is enough interest yea or that way :P custom one ?? hmm sure i guess people would be interested when are they not interested in your work ;) Quote Link to comment Share on other sites More sharing options...
sniko Posted May 27, 2015 Share Posted May 27, 2015 yea or that way :P custom one ?? hmm sure i guess people would be interested when are they not interested in your work ;) You charmer ;) Might drop it this weekend then, maybe. Quote Link to comment Share on other sites More sharing options...
NonStopCoding Posted May 27, 2015 Share Posted May 27, 2015 You charmer ;) Might drop it this weekend then, maybe. lol look at your chat mod i think mwg went crazy waiting on release haha Quote Link to comment Share on other sites More sharing options...
NonStopCoding Posted May 27, 2015 Share Posted May 27, 2015 (edited) Yeah true, it wwouldn't insert into my database unless I executed the way i displayed here, except I changed the commas to ; and away it went. Now when I added "clubbing.php" - "club.php" was returning as a blank page, only showing the header.. What could be causing this ok looking further into the code i believe your issue is this travelingglobals.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. replace with You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. also if you turn on error reporting you are going to find things like A non-critical error has occurred. Page execution will continue. Below are the details: PHP Notice: Undefined index: action (8) Line executed: /home/nonstopc/public_html/mcc/club.php:22 a simple fix would be You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. above the You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. EDIT AGAIN: So i quickly installed the module onto my test site and went to a club spent about $6,000 did a dare and make like $20,000 profit. Basically what i am trying to say is edit the payouts etc before you put it live as it could cause inflation on your game Edited May 27, 2015 by NonStopCoding Quote Link to comment Share on other sites More sharing options...
-BRAIDZ- Posted May 28, 2015 Share Posted May 28, 2015 Or... you know.... You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. ;) Personally, I dislike the error handler that is shipped - might drop my custom one if there is enough interest I dont have a lib folder? Quote Link to comment Share on other sites More sharing options...
sniko Posted May 28, 2015 Share Posted May 28, 2015 I dont have a lib folder? But seriously, ok... why are you telling me? Quote Link to comment Share on other sites More sharing options...
-BRAIDZ- Posted May 28, 2015 Share Posted May 28, 2015 (edited) Or... you know.... You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. ;) Personally, I dislike the error handler that is shipped - might drop my custom one if there is enough interest This is why I was telling you.... Sorry using my phone and it's being a pain, was meant for non Stop Edited May 28, 2015 by -BRAIDZ- Quote Link to comment Share on other sites More sharing options...
NonStopCoding Posted May 28, 2015 Share Posted May 28, 2015 (edited) This is why I was telling you.... Sorry using my phone and it's being a pain, was meant for non Stop ok so i assume your v2 is older version ok then snikos way would be the way for you :P add the code to the file you wish to see errors on You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. might want to read this so you understand a little more http://php.net/manual/en/function.ini-set.php http://php.net/manual/en/function.error-reporting.php Edited May 28, 2015 by NonStopCoding Quote Link to comment Share on other sites More sharing options...
-BRAIDZ- Posted May 28, 2015 Share Posted May 28, 2015 ok so i assume your v2 is older version ok then snikos way would be the way for you :P add the code to the file you wish to see errors on You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. might want to read this so you understand a little more http://php.net/manual/en/function.ini-set.php http://php.net/manual/en/function.error-reporting.php Added, thanks Quote Link to comment Share on other sites More sharing options...
sniko Posted May 28, 2015 Share Posted May 28, 2015 Added, thanks Make sure you remove it when you go into production. Quote Link to comment Share on other sites More sharing options...
-BRAIDZ- Posted May 28, 2015 Share Posted May 28, 2015 Make sure you remove it when you go into production. I will, thank you Quote Link to comment Share on other sites More sharing options...
boionfire81 Posted April 16, 2016 Share Posted April 16, 2016 Ok, not 2 year bump, just 1, lol. I can't find where the query is for the drink prices etc???? It is there, cause it took my moneys, but I can't find it. I dunno probably brain dead from days on days with mc -.- Quote Link to comment Share on other sites More sharing options...
KyleMassacre Posted April 16, 2016 Share Posted April 16, 2016 They are stored in variables like $beer and $vodka 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.