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], fbank, prize;
format(fambank1,sizeof(fambank1),"%sBank",FactionInfo[ factionex2 ][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", fambank1, fbank, prize, var);
dini_IntSet(globalstats, fambank1, var);
Check server_log after using your cmd
|
Edit: It shows this
fambank1: PoliceBank | fbank=99999900 | prize=-1 | var=199999798