Jump to content
MakeWebGames

Club Mod (my version)


War_Hero

Recommended Posts

  • Replies 71
  • Created
  • Last Reply

Top Posters In This Topic

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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 by NonStopCoding
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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 by NonStopCoding
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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 ;)

Link to comment
Share on other sites

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 by NonStopCoding
Link to comment
Share on other sites

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 by -BRAIDZ-
Link to comment
Share on other sites

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 by NonStopCoding
Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • 10 months 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...