Getting a value with dini returns 0
#1

Hello,

I got a weird problem

pawn Код:
format(string,sizeof(string),"      Bank Cash: $%d - 5 Percent Profit = $%d - New Balance: $%d.",dini_Int(file,"BankMoney"),BankProfit,dini_Int(file,"BankMoney") + BankProfit);
        SendClientMessage(playerid,COLOR_ORANGE,string);
returns 0. 'file' is formatted good. The problem is in the first %d (Bank Cash: $%d). That one just gives 0 although I got 200000 in my bank.

Regards, Jochem
Reply
#2

Why 2x didi_Int ? ;/
Try:
pawn Код:
new BankM = dini_Int(file,"BankMoney");
format(string,sizeof(string),"      Bank Cash: $%d - 5 Percent Profit = $%d - New Balance: $%d.",BankM,BankProfit,(BankM + BankProfit));
Reply
#3

Yea I've tried it yesterday evening and it worked
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)