Jump to content
MakeWebGames

[mccode v2] NEW GAME STATS PAGE


shrek1609

Recommended Posts

I've revamped the Game Stats page made it alot less cluttered and it now has the number of users in the last 15 minutes, 1 hour and 24 hours... Plus a record ever total of the previous 3...

SQL

 

You're unable to view this code.

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

 

REPLACE STATS.PHP WITH THIS

 

You're unable to view this code.

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

 

And enjoy :)

Link to comment
Share on other sites

Re: FREE V2 NEW GAME STATS PAGE

I've painted my game name out of the screenshot as not sure whether advertising your site in anyway is allowed on here ;)

But coding puts your game name in automatically anyway ;)

Its not a massive mod but is a much better game stats page than the mccodes default one ;)

Link to comment
Share on other sites

Re: FREE V2 NEW GAME STATS PAGE

V1 version is completely messed up i'll fix that later and repost it...

Examples:

Amount of cash in banks: $0.

The average player has in their bank accnt: $0.

Amount of cash in circulation: $0. Amount of crystals in circulation: 0.

The average player has: $0. The average player has: 0 crystals.

There are currently 0 items in circulation.

Link to comment
Share on other sites

Re: FREE V2 NEW GAME STATS PAGE

As I promised. Here is the FIXED V1 version.

 

You're unable to view this code.

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

 

I just changed the fetch_row's to fetch_array's for v1.

Edit = Changed it from a quote to code lol.

CODE TESTED AND WORKING!

Link to comment
Share on other sites

Re: FREE V2 NEW GAME STATS PAGE

 

I've revamped the Game Stats page made it alot less cluttered and it now has the number of users in the last 15 minutes, 1 hour and 24 hours... Plus a record ever total of the previous 3...

SQL

 

You're unable to view this code.

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

 

REPLACE STATS.PHP WITH THIS

 

You're unable to view this code.

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

 

And enjoy :)

 

 

the information is rong it says average player wid money in bank is 246464364

Link to comment
Share on other sites

  • 2 weeks later...
Guest Anonymous

Re: FREE V2 NEW GAME STATS PAGE

 

Warning: Division by zero in /home/textbase/public_html/stats.php on line 24

Not wishing to sound harsh, but RTFM, that is a 2 second fix. You should ALL be able to repair minor issues like this in your sleep. If you can't, then I seriously doubt you have the necessary skills to run a game.

Link to comment
Share on other sites

Re: FREE V2 NEW GAME STATS PAGE

 

Warning: Division by zero in /home/textbase/public_html/stats.php on line 24

Not wishing to sound harsh, but RTFM, that is a 2 second fix. You should ALL be able to repair minor issues like this in your sleep. If you can't, then I seriously doubt you have the necessary skills to run a game.

not sounding harsh if ya not going to help i dont think you shud be a global mod if you wont help and basically you are spamming

Link to comment
Share on other sites

Guest Anonymous

Re: FREE V2 NEW GAME STATS PAGE

 

not sounding harsh if ya not going to help i dont think you shud be a global mod if you wont help and basically you are spamming

What is the point of just say "Error on line #", I've looked, and I don't appear to have crystal balls. I have no idea what "code" you have. Looking over your posts, you are guilty of this simple thing in several locations.

We can't help you unless you give us a little bit of a clue - so please post the code *then* you may get a more helpful answer.

Link to comment
Share on other sites

Guest Anonymous

Re: FREE V2 NEW GAME STATS PAGE

Well obviously a divide by zero error means that $banks is zero.

You should *always* check all divisions for this issue, in this case a simple one-line solution presents itself.

Link to comment
Share on other sites

Re: FREE V2 NEW GAME STATS PAGE

Ok...I assume you know what division by zero mean? :lol:

Well incase you don't then obviously, you're not fit to run a game. I had this same problem and the fix is simple. Just make sure user id 1 has a bank account...the reason it's division by 0, is because you're dividing by the amount of bank accounts, which is 0 in the game.

It worked for me...no need to edit the code

Link to comment
Share on other sites

  • 2 months later...
  • 2 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...