[SOLVED] How to sum up balances to a totalBalance

try to initialize that array before that line with a for

Jesus dude, this was a hard birth, but its obvious now, because every time will be created after iterating through the loop, so of course I ended up with 5 different arrays.

now it works, you are a legend dude
Note to myself, by cryptokid a beer for putting up with my shit

thanks

1 Like