Cronwerks MCCode/MCCodes Forums

Please login or register.

Login with username, password and session length

News:

Have errors in your coding or want something specific added to your game? Check out our paid support here.


This forum is now closed and has moved to a new location! Click here to find out why.

AuthorTopic: [MCCode] Bank To Bank Transfers  (Read 1245 times)

Cronus

  • Administrator
  • Senior Member
  • *****
  • Reputation Power: 2901
  • Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!Cronus is awe-inspiring!
  • Offline Offline
  • Posts: 550
    • MSN Messenger - preston__08@hotmail.com
    • View Profile
    • WWW
[MCCode] Bank To Bank Transfers
« on: February 06, 2009, 02:12:54 AM »
Bank To Bank Transfers

This includes the regular bank, and the cyber bank.
Very basic mod, takes about 2 minutes to set up.

The file is attached in .rar form.
You will need to be registered and logged in to access it.
« Last Edit: February 26, 2009, 01:41:26 PM by Cronus »
Logged
My msn is preston__08@hotmail.com if anyone is interested, I am online frequently.

Crazy-T

  • Basic Member
  • *
  • Reputation Power: 0
  • Crazy-T is looked down upon.
  • Offline Offline
  • Posts: 23
    • MSN Messenger - bb-16-ac@hotmail.co.uk
    • View Profile
Re: [MCCode] Bank To Bank Transfers
« Reply #1 on: March 15, 2009, 09:41:44 PM »
You could use this for donators only will be nice, for V1 users, because V2 has it i think lol
Logged
Self Taught Website Dev'er
If you need me pm on here or email/pm me on Msn bb-16-ac@hotmail.co.uk

darkwolf

  • Basic Member
  • *
  • Reputation Power: 0
  • darkwolf has no influence.
  • Offline Offline
  • Posts: 1
    • View Profile
Re: [MCCode] Bank To Bank Transfers
« Reply #2 on: December 03, 2011, 12:18:35 PM »
Interesting, but is there anyway to prevent from sending money to someone who doesn't have a bank account?
Logged

dominion

  • Active Member
  • **
  • Reputation Power: 89
  • dominion barely matters.dominion barely matters.
  • Offline Offline
  • Posts: 129
    • View Profile
    • Email
Re: [MCCode] Bank To Bank Transfers
« Reply #3 on: December 03, 2011, 01:39:27 PM »
Interesting, but is there anyway to prevent from sending money to someone who doesn't have a bank account?
Just run a quick check to see if the user they are sending to has 0+ money in the `bank` field (since that's how bank accounts are stored -1 = no account).

Code: [Select]
$checkQuery = mysql_query("SELECT count(`userid`) from `users` WHERE `userid`=".abs(intval($_GET['ID']))." AND `bankmoney`>-1");
$check = mysql_result($checkQuery, 0);

if($check != 1) {
    echo 'this user does not have a bank account.';
    exit($h->endpage());
}

Or if their bank money is already selected

Code: [Select]
if($r['bankmoney'] >-1) {
    echo 'this user does not own a bank account';
    exit($h->endpage());
}
« Last Edit: December 03, 2011, 01:46:08 PM by dominion »
Logged
 


This forum is now closed and has moved to a new location! Click here to find out why.