Please help arduino code error

Is there an error in this line? arduino sometimes freezes

if (currentTimeButton-previousTimeButton>=buttonInterval)
//5000ms geçti
} while(digitalRead(yazdirPin)==HIGH);

//Buton basma için zaman geçti

if (yazdirSureBitti==false)
yazdirSureBitti=false;    // 


Which line?

Your sketch is not complete. There could be an error but it could be in the parts you did not show.

Read the forum guidelines to see how to properly post code.
Use the IDE autoformat tool (ctrl-t or Tools, Auto format) before posting code in code tags.

Please include the entire error message. It is easy to do. There is a button (lower right of the IDE window) called "copy error message". Copy the error and paste into a post in code tags. Paraphrasing the error message leaves out important information.

How do you know that the Arduino freezes? What is your definition of "freezes"?

@ cumali6565

Other post/duplicate DELETED
Please do NOT cross post / duplicate as it wastes peoples time and efforts to have more than one post for a single topic.

Continued cross posting could result in a time out from the forum.

Could you also take a few moments to Learn How To Use The Forum.

Other general help and troubleshooting advice can be found here.
It will help you get the best out of the forum in the future.