Jump to content
MakeWebGames

Recommended Posts

Posted

This mod was created a while back, but I wasn't able to upload it as I lost all my coding things when my laptop got messed up. However I did find a backup, so here it is. It is a back for Crystals or whatever you're game has named them, hence the name secondary bank. All feedback welcome. :)

seBank.php

You're unable to view this code.

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

 

 

SQL:

 

You're unable to view this code.

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

 
Posted

Nice nice, very good to see some more releases keep 'em coming :).

  • 6 months later...
Posted

Hi there great addon I am getting this error if u could poin me right direction Ty BANK

QUERY ERROR:

QUERY WAS UPDATE `USERS` SET `MONEY` = `MONEY` - 10000, `BANKCRYSTALS` = 0 WHERE `USERID` = 1

Posted
Hi there great addon I am getting this error if u could poin me right direction Ty BANK

QUERY ERROR:

QUERY WAS UPDATE `USERS` SET `MONEY` = `MONEY` - 10000, `BANKCRYSTALS` = 0 WHERE `USERID` = 1

What's the exact error?

Did you run the SQL?

Posted
Hi there great addon I am getting this error if u could poin me right direction Ty BANK

QUERY ERROR:

QUERY WAS UPDATE `USERS` SET `MONEY` = `MONEY` - 10000, `BANKCRYSTALS` = 0 WHERE `USERID` = 1

I posted on your other thread about it.

  • 2 weeks later...
  • 1 year later...
Posted

My text editor Atom always adds an extra blank link or two at the end when I hit save. But the error is just the same:

Parse error: syntax error, unexpected end of file in C:\xampp\htdocs\seBank.php on line 87

Posted (edited)
1 hour ago, PHPStudent said:

My text editor Atom always adds an extra blank link or two at the end when I hit save. But the error is just the same:

Parse error: syntax error, unexpected end of file in C:\xampp\htdocs\seBank.php on line 87

Heh I remember this. I'm credited woop woop lol.

As to your fix. Try adding } or two just before $h->endpage(); ?>

If not let me know as I'm credited and will redo/bug fix this when I get on my PC tomorrow.

Your Web PHP version and mccodes version too would be great help in a recode/fix for you. 

I use php 7.5 which is latest.

Missing from scripts47 post is you need to add a field to your settings table and called it crystalname with a text value Crystal

Edited by peterisgb
Posted

 

8 minutes ago, peterisgb said:

Heh I remember this. I'm credited woop woop lol.

As to your fix. Try adding } or two just before $h->endpage(); ?>

If not let me know as I'm credited and will redo/bug fix this when I get on my PC tomorrow.

Your Web PHP version and mccodes version too would be great help in a recode/fix for you. 

I use php 7.5 which is latest 😄

 

Using Mccodes v2.05b, and PHP 7 (I think? 🤔).

Also I did add some extra }'s at the end but no good. 🙂

 

Posted (edited)

Not sure why your getting an error after checking this myself.
My copy is below, Its abit more than the original as it includes a money bank aswell as a crystal bank. like all in one.

Page Settings are on lines 44 - 49.

you can call this file whatever you like as i php selfed all links. I've called it sebank.php (without the Cap B).

You're unable to view this code.

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

and of course run this sql like the first post.

You're unable to view this code.

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

 

If the above script I put above doesnt work then I'd suggest its somewhere else on your site.

Edited by peterisgb
  • Like 1
  • 2 years 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...