So, I'm making a game with income (variable) and every turn the money variable goes up, as much as the income variable is for example:
set income=350
set /a "money=money+INCOME"
If I use the normal %VARIABLENAME% to call the variable it doesn't work and the money value stays the same. Please help!
setlocal enabledelayedexpansionto the start of your script and change%money%to!money!.:LOOP........ set BLAHBLAH............. goto LOOPit's notset /a "money=%money%+%income%"doesn't work? This works correctly on my machine. Unless it's inside the parentheses of aFOR ... DO (...)loop. Then it's the delayed expansion problem.