Function for multiple blinking led

Warning - I made a mistake in my code. It still works, but just cause I lucked out.

int i;
for(i=0;i<=13;i++) { //error was in this line
timeON = 0;
_ timeOFF = 0;_
_ state = LOW;
}_