Not sure why this code fails validation.

Not sure why this code fails validation.

Background: I wanted to have Zoho assign custom IDs for certain forms so I followed the advice online and created a counter system wherein an Auto_Number form keeps track of the highest IDs and simply adds one to the appropriate counter when a new record is created.  I would like to have the ID reset based on the year so that the last ID in 2012 might be 20125689 and on Jan 1 2013 it would automatically become 20130000. I'm trying to achieve this via the scheduler which I have never used before.  There is a field called Reset in Auto_Number which holds the first day of the year so that the scheduler can run based on it.

My problem is that the validation gives the following error message and I don't understand what I did wrong:
Error in saving the script:
Encountered "==" at line 3, column 20.
Was expecting:
"(" ... 

It's probably something easy so sorry if I seem daft.  I'm a first-time user about would really appreciate any help you can offer.   Thanks, Dave.

Rest Auto Numbers on Jan 1
{
Execute on Auto_Number.Reset at 00:00:00  yearly 
}  

for each x in Auto_Number [ID == XXXXXXXXXXXXXXXXXX]
{
x.Highest_Event_ID  ==  (zoho.currentdate.getYear() + 0000);
x.Highest_Contact_ID == (zoho.currentdate.getYear() + 0000);
x.Highest_Customer_Account_ID == (zoho.currentdate.getYear() + 0000);
x.Reset == x.Reset.addYear();
}