Problem compiling UGDE project

Iam leraning unity from “UNITY game development essentials” book in this book it has project that named UGDE and i am using unity4.2 but i have problems in script how can i fix it??

hi, i am new in game making with unity and iam leraning unity from “UNITY game development essentials” book in this book it has project tha named UGDE and i am using unity4.2 but i have problems in script and i cant fix it please help me and i am from iran and we have problems in unity please help me i am stocked??? and these pictures are script and errors and i made it exactly as book but i faced with this problem.

That book is written for Unity 3.x, so it’s inevitable that there will be some differences when running the code examples under 4.x. (Also, it’s published by Packt, who are notorious for having poor proofreading and technical editing).

Are you copying the code in manually? If so, you’ve probably made a typing mistake. Instead, you can download the example code from http://unitybook.net/downloads/

If you want any further help, you really need to give more information than just “you have an error”.