Jump to content
MakeWebGames

Recommended Posts

Posted

I get bored easy and i recoded bank... just incase yall assume this is the bank just changed please read the full code its alot different i never even looked at bank when i made this

its a little more advanced than the actual bank and has i see noobs making a bank just for donators i made this for yaz

 

Open bank.php:

delete the content

then add this:

You're unable to view this code.

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

 

Open cron_day.php:

Find:

You're unable to view this code.

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

Add Below:

You're unable to view this code.

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

 

I posted this since i ain't posted anything free in awhile.

please leave comments.

Posted

Re: Av Bank [FREE]

 

You're unable to view this code.

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

 

Should be

 

You're unable to view this code.

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

  • 7 months later...
Posted

Re: Av Bank [FREE]

$db->query("UPDATE users SET bankmoney=bankmoney+(bankmoney/50) where bankmoney>0 and donatordays>0");

Thats for 4% interest everyday correct?

so to make it 1% what would it be?

so to make it 2% what would it be?

Posted

Re: Av Bank [FREE]

100% = total bank, therefor 1% = bank*0.01, etc etc etc

so, getting on the Zero's code for 1% interest it would be something like this

$db->query("UPDATE users SET bankmoney=bankmoney+(bankmoney*0.01) where bankmoney>0 and donatordays>0");

or

$db->query("UPDATE users SET bankmoney=bankmoney+(bankmoney*.01) where bankmoney>0 and donatordays>0");

Posted

Re: Av Bank [FREE]

$db->query("UPDATE users SET bankmoney=bankmoney+$interest = (int) floor($moneys * 0.01); where bankmoney>0 and donatordays>0")

Mmm i 99.9% it wouldn't work...

Posted

Re: Av Bank [FREE]

That's because it supposed to be like:

$moneys = user money here;

$interest = (int) floor($moneys * 0.01);

$db->query("UPDATE users SET bankmoney=bankmoney+".$interest." where bankmoney>0 and donatordays>0");

Posted

Re: Av Bank [FREE]

(float) would be useless for 2 reasons.

1. floor rounds a float into an integer.

2. the bank money field in the users table is integer so if a float would be inserted it would be rounded.

:P

Posted

Re: Av Bank [FREE]

 

(float) would be useless for 2 reasons.

1. floor rounds a float into an integer.

2. the bank money field in the users table is integer so if a float would be inserted it would be rounded.

:P

my row for bank isn't int :-D

Posted

Re: [mccode v2] Av Bank

im sure the floor and float could be added...

I maybe wrong but this is a obvious solution to the draw backs in all the previous posts

money=money+(money*0.01) would basically lets show example

100 = 100 + (100*0.01)

therefore resulting in 100 + 101 = 201

good try though guys... but i don't wanna gives users 101% interest:p

Posted

Re: [mccode v2] Av Bank

Please. When you make a edit make it right.

 

$db->query('UPDATE users SET bankmoney=(bankmoney * 0.01) where bankmoney>0 and donatordays>0', $interest);

That would give you a error like a llama spitting at you.

 

You're unable to view this code.

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

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