SOLVED: Creating my own functions

Hi there. At the moment, I am working on a program, which creates a S.O.S. message with a LED. Below is the program:

int ledPin = 13;

void setup()
{
pinMode(ledPin, OUTPUT);
}

void loop()
{
falsh(200); flash(200); flash(200);
delay(300);
flash(500); flash(500); flash(500);
falsh(200); flash(200); flash(200);
}

void flash(int duration)
{
digitalWrite(ledPin, HIGH);
delay(duration);
digitalWrite(ledPin, LOW);
delay(duration);
}

When I verify the code, it says that flash hasn't been declared in this scope. I don't know what to do when this message appears. Can anyone help me please?

Read the error again.... it might say "falsh"

falsh(200); flash(200); flash(200);

(deleted)

This typo appears twice in your code:

falsh(200); flash(200); flash(200);

@RoyK, you can't do any highlighting inside the code tags...

@RoyK, you can't do any highlighting inside the code tags...

Yeah, just figured that out. Live and learn XD

They say it's a sad day when we don't learn something...

Thank you everyone. This was my first ever project. Thanks XD