Strange variable/player file problem
#4

pawn Code:
BankCash[playerid] = dUserINT(PlayerName(playerid)).("bankcash");
^^ Is letting the script know that when BankCash[playerid] is used that it's to read from the playerfiles bankcash line. (bankcash is the amount the player has in his bank account.)

pawn Code:
new MoneyInPack =dUserINT(PlayerName(playerid)).("HasPackMoney");
Makes MoneyInPack read from the players HasPackMoney line. (HasPackMoney is the amount of money the player has in his backpack.)

pawn Code:
BankCash[playerid] +=MoneyInPack;
Gets the players Bank account to increase by the amount the player has in his bank account.

pawn Code:
HasPackMoney[playerid]=0;
Gets the amount in the players backpack to reset to $0.
Reply


Messages In This Thread
Strange variable/player file problem - by Byrner - 24.05.2009, 21:22
Re: Strange variable/player file problem - by Badger(new) - 24.05.2009, 21:28
Re: Strange variable/player file problem - by Weirdosport - 24.05.2009, 21:29
Re: Strange variable/player file problem - by Byrner - 24.05.2009, 21:42
Re: Strange variable/player file problem - by Weirdosport - 24.05.2009, 21:49
Re: Strange variable/player file problem - by Byrner - 24.05.2009, 22:03
Re: Strange variable/player file problem - by Byrner - 24.05.2009, 22:52
Re: Strange variable/player file problem - by Weirdosport - 24.05.2009, 23:07
Re: Strange variable/player file problem - by Byrner - 24.05.2009, 23:25

Forum Jump:


Users browsing this thread: 2 Guest(s)