Removing amount from Ini File
#1

Hi guys im making some kind of bank system but my question is how to do the current amount in the ini file minus the amount i give in:

BankMoney (Read from IniFile) - 5000

dini_Set("status.ini", "BankMoney", );

Please help me.
Thanks!
Reply
#2

pawn Код:
new money = dini_Int("status.ini", "BankMoney") + NumberWhichThePersonTypedIn;
dini_IntSet("status.ini", "BankMoney", money);
GetPlayerMoney(playerid, -money);
Ok that isnt what you exactly wanted but the first line should fit your question
because if the number that you typed is is minus the plus will turn to a minus because +- = -
Reply
#3

EDIT: Got it, thanks!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)