Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate

Doing math with variables


  • Please log in to reply
2 replies to this topic
Mathematical Gangsta
  • Guests
  • Last active:
  • Joined: --
There's an error in this script but i don't know what error.

FileRead, number, number.txt ; reads the file that saves the current number
newnumber := %number% + 1 ; adds 1 to the current number
FileDelete, number.txt ; deleted the old file with the old number
FileAppend, %newnumber%, number.txt ; makes a new file with the new number
MsgBox, %newnumber% ; shows the new number

:(

polyethene
  • Administrators
  • 5517 posts
  • Last active: Jun 02 2014 02:21 AM
  • Joined: 26 Oct 2012
newnumber := number + 1

No percent signs in expressions.

M.G.
  • Guests
  • Last active:
  • Joined: --
Thank you very much! :D