Jump to content
MakeWebGames

Recommended Posts

Posted

Hey everyone, Here i have yet another free mod.

This is a investment bank, Users can invest their money for a selected amount of time, and receive a fixed interest rate.

at the end of there investment time they will then be able to withdrawl their money.

Simple eh?

This mod includes:

1 PHP file

2 columns added to the users table

Lets get started.

First make a file called investbank.php

You're unable to view this code.

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

 

Second, runs these SQL's

[mysql]

ALTER TABLE users ADD bankCASH BIGINT(11) NOT NULL DEFAULT 0

ALTER TABLE users ADD bankTIME INT(11) NOT NULL DEFAULT -1

[/mysql]

Last, add to cron_day.php

You're unable to view this code.

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

 

And thats all!

Now for some pictures!

http://www.imageurlhost.com/images/wr4ebdiiufwkwbt3nv7t.jpg

http://www.imageurlhost.com/images/8bqqpmqwfi21r0w3dgo5.jpg

http://www.imageurlhost.com/images/rt4i9r36c557u9oxiyvv.jpg

http://www.imageurlhost.com/images/kmq8zyenug1ck5iusrlw.jpg

http://www.imageurlhost.com/images/zprv916x103cy3fxx5vx.jpg

If there are any problems please post them below!

Thanks,

Devon.

Posted

Maniak.....make your own with it timestamped then?

Its ok. Lack of security means I could firebug this all the way to the bank 8o

and....more fields in the users table? really?? Cmon the users table by default has too much crapola in it.

BIGINT(11) really? -9223372036854775808 to 9223372036854775807

Your players are really going to have that much cash?

Posted

Really so hows that going to work then?

Ok the biggest input value is 10 digits. Ill change that from 1,000,000,000 to 9,999,999,999 its still 10 digits but im getting around the max which should be allowed.

Posted

Zu, the game that I (well Me and my Partner) have on the web wouldn't be right with this Mod added in (hence why I haven't coded one); I was just stating that I think it would work better with timestamps.

Posted
Im aware it is in need of securing. Which i dont know how to do.. :(

Securing your scripts is not hard to do nor is it hard to find out.. There is a pretty good tutorial someone posted on here which is pretty good. Search is a great feature. Google is an other great feature which can also help you learn about securing your scripts.

Posted
Im aware it is in need of securing. Which i dont know how to do.. :(

Securing your scripts is not hard to do nor is it hard to find out.. There is a pretty good tutorial someone posted on here which is pretty good. Search is a great feature. Google is an other great feature which can also help you learn about securing your scripts.

Well, considering this is free im not to worried about it, and talking to me like im a retarded isn't appreciated.

Posted

Change (Line 20 *unedited*):

You're unable to view this code.

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

To

You're unable to view this code.

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

Just a visual enhancement, after all it isn't days if it's only one day.

Place this:

You're unable to view this code.

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

Before (Line 70 *unedited*):

You're unable to view this code.

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

Posted
Quoted from "chicka"

 

 

 

Quoted from "devonbnice"

 

Im aware it is in need of securing. Which i dont know how to do.. :(

Securing your scripts is not hard to do nor is it hard to find out.. There is a pretty good tutorial someone posted on here which is pretty good. Search is a great feature. Google is an other great feature which can also help you learn about securing your scripts.
Well, considering this is free im not to worried about it, and talking to me like im a retarded isn't appreciated.
Im aware it is in need of securing. Which i dont know how to do.. :(

Securing your scripts is not hard to do nor is it hard to find out.. There is a pretty good tutorial someone posted on here which is pretty good. Search is a great feature. Google is an other great feature which can also help you learn about securing your scripts.

Well, considering this is free im not to worried about it, and talking to me like im a retarded isn't appreciated.

I was having a pretty crappy day yesterday and my have come off like an ass. My apologies 8) .
  • 2 weeks later...
Posted
Great Mod but you need to add a function if a players want to stop the investment to have an option Stop Invest and then receive his money back without interest

Thats no use. When a player invests his muny he types of makes a contract that he wont be able to touch this money until investment time ends.

Posted
Great Mod but you need to add a function if a players want to stop the investment to have an option Stop Invest and then receive his money back without interest

Thats no use. When a player invests his muny he types of makes a contract that he wont be able to touch this money until investment time ends.

Yes, Your making a contract with the bank to hold your money and gain interest on it. If you invest in real life you cant just take your money out when ever your want. You have to choose an investment plan.

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...