Zero-Affect Posted May 20, 2008 Posted May 20, 2008 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. Quote
radio_active Posted May 20, 2008 Posted May 20, 2008 Re: Av Bank [FREE] haha, nice mod :lol: I posted this since i ain't posted anything free in awhile. please leave comments. Im sorry to here it dude! Quote
Zero-Affect Posted May 20, 2008 Author Posted May 20, 2008 Re: Av Bank [FREE] yeah i went around afew sites and they had a donator bank n all i could think was... how noobish can you get lol it just wastes sql space Quote
Akash Posted May 20, 2008 Posted May 20, 2008 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. Quote
Zero-Affect Posted May 20, 2008 Author Posted May 20, 2008 Re: Av Bank [FREE] yeah sorry about that edited it in i just copied from my day cron lol n posted it quick lol Quote
Zero-Affect Posted May 22, 2008 Author Posted May 22, 2008 Re: Av Bank [FREE] http://criminalexistence.com/ceforums/i ... ic=20739.0 if preferred a better version [PAID] Quote
danger boy Posted May 23, 2008 Posted May 23, 2008 Re: Av Bank [FREE] nice mod -z-e-r-o- looks good Quote
Zero-Affect Posted May 23, 2008 Author Posted May 23, 2008 Re: Av Bank [FREE] thanks i prefer the paid version but yeah this is iight for you guys who don't like to pay... or are skink lol give a lil back i always say Quote
03laceys Posted December 26, 2008 Posted December 26, 2008 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? Quote
Alex Riley Posted December 26, 2008 Posted December 26, 2008 Re: Av Bank [FREE] For 2% half the 4% and for 1% half the 2% .... i think :S Quote
Lithium Posted December 26, 2008 Posted December 26, 2008 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"); Quote
Zero-Affect Posted December 27, 2008 Author Posted December 27, 2008 Re: Av Bank [FREE] /50 would be 2% im sure that would work out in most scenarios may want to int or float it incase lets say 101 / 50 = 50.5 could be a issue lol Quote
POG1 Posted December 27, 2008 Posted December 27, 2008 Re: Av Bank [FREE] $interest = (int) floor($moneys * 0.01); Quote
Zero-Affect Posted December 27, 2008 Author Posted December 27, 2008 Re: Av Bank [FREE] $interest = (int) floor($moneys * 0.01); im sure You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. would be best for bigger games Quote
03laceys Posted December 27, 2008 Posted December 27, 2008 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... Quote
Haunted Dawg Posted December 27, 2008 Posted December 27, 2008 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"); Quote
Zero-Affect Posted December 27, 2008 Author Posted December 27, 2008 Re: Av Bank [FREE] lol would never have guess kyle :-D atleast let them work something out for themselves Quote
POG1 Posted December 27, 2008 Posted December 27, 2008 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 Quote
Zero-Affect Posted December 27, 2008 Author Posted December 27, 2008 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 Quote
POG1 Posted December 27, 2008 Posted December 27, 2008 Re: Av Bank [FREE] float(11,2)? But you can only withdraw a whole number so i sit still pretty useless.. Quote
Zero-Affect Posted December 27, 2008 Author Posted December 27, 2008 Re: Av Bank [FREE] ... how about round() instead of floor and float is acceptable if you use bigint... Quote
Zero-Affect Posted December 29, 2008 Author Posted December 29, 2008 Re: [mccode v2] Av Bank You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. im sure that would make alot more sense... lol Quote
Haunted Dawg Posted December 29, 2008 Posted December 29, 2008 Re: [mccode v2] Av Bank And exactly how is $ir defined? Quote
Zero-Affect Posted December 29, 2008 Author Posted December 29, 2008 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 Quote
Haunted Dawg Posted December 29, 2008 Posted December 29, 2008 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. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.