#1

i made a bank and when i deposit something on the file it deposit it X2 any idea why?
pawn Code:
dini_IntSet(file, "Bank Money",PlayerInfo[playerid][BankMoney] += money);
Reply
#2

Split your line. The first would be reading the needed deposit value,
pawn Code:
new cash = PlayerInfo[playerid][BankMoney] += money)
And the second one would be the dini save,
pawn Code:
dini_IntSet(file, "Bank Money",cash);
I'm not sure, but it might be something that you haven't shown us. For example, maybe a bad code while getting the money variable?

BTW, I suggest using Y_ini instead of the old dini, this is much faster.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)