No money added in bank
#1

I don't get it why I don't received money in faction bank even when I already set the price and multiply it instead I get -2 everytime in bank not x2 amount or plus prize.

or I just making some mistakes that I can't see or just too confused..

PHP код:
            new fambank1[128], fbankprize;
            
format(fambank1,sizeof(fambank1),"%sBank",FactionInfofactionex2 ][FactionName]);
            
fbank dini_Int(globalstats,fambank1),
            
prize dini_Int(warfile,"warprize");
            
dini_IntSet(globalstatsfambank1fbank+prize*2); 
Reply
#2

Try
pawn Код:
dini_IntSet(globalstats, fambank1, fbank+=prize*2);
Reply
#3

Show us more of your faction system code. And maybe also move towards SQL... I don't understand why people still stick with Dini to this day - It doesn't matter if it works or not, It (SQL) is what you should be using.
Reply
#4

I'm using both SQL and dini. I'm using dini for fbank since it's ez to manage and it's only globalstats.
Reply
#5

With MySQL is even more easy.
Reply
#6

I dont know how your faction system looks like so i can just tell you to debug your variables and check if there are some mistakes

PHP код:
            new fambank1[128], fbankprize
            
format(fambank1,sizeof(fambank1),"%sBank",FactionInfofactionex2 ][FactionName]); 
            
fbank dini_Int(globalstats,fambank1), 
            
prize dini_Int(warfile,"warprize"); 
            new var=((
fbank+prize)*2);
            
printf("fambank1: %s | fbank=%d | prize=%d | var=%d"fambank1fbankprize, var);
            
dini_IntSet(globalstatsfambank1, var); 
Check server_log after using your cmd
Reply
#7

Quote:
Originally Posted by KinderClans
Посмотреть сообщение
With MySQL is even more easy.
This is scripting help thread, it's not like MySQL vs Dini scripting help.
Reply
#8

Quote:
Originally Posted by Shinja
Посмотреть сообщение
I dont know how your faction system looks like so i can just tell you to debug your variables and check if there are some mistakes

PHP код:
            new fambank1[128], fbankprize
            
format(fambank1,sizeof(fambank1),"%sBank",FactionInfofactionex2 ][FactionName]); 
            
fbank dini_Int(globalstats,fambank1), 
            
prize dini_Int(warfile,"warprize"); 
            new var=((
fbank+prize)*2);
            
printf("fambank1: %s | fbank=%d | prize=%d | var=%d"fambank1fbankprize, var);
            
dini_IntSet(globalstatsfambank1, var); 
Check server_log after using your cmd
Edit: It shows this

fambank1: PoliceBank | fbank=99999900 | prize=-1 | var=199999798
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)