Strange variable/player file problem
#1

pawn Code:
BankCash[playerid] = dUserINT(PlayerName(playerid)).("bankcash");
    new MoneyInPack =dUserINT(PlayerName(playerid)).("HasPackMoney");
    BankCash[playerid] +=MoneyInPack;
    HasPackMoney[playerid]=0;
The goal of the code is to take the players money from his Backpack ... deposit it into his bank account and set the backpack amount to 0.
It does ... nothing.
I've tried a few different ways to do it, this is the most recent.

The players packback keeps the same amount and the bank account doesn't increase.

Before you ask; this IS all the code you will need. All the other code in the command would have nothing to do with this part.
This is a very strange problem; one I can't seem to figure out, any help would be appreciated.
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)