Problems with siren and bluetooth, stuck in loop

Hello,

I am trying to make a bluetooth activated siren using an HC05 and an old siren speaker. I tried to make the siren sound like a police car, so the frequency rises and goes down but it stops there and doesnt play in a loop. I tried using while(true). But it gets stuck in the loop.
Can somebody tell me what i'm doing wrong?
Here is the code Ardu Code - Pastebin.com

Thanks in advance.

(deleted)

spycatcher2k:
Post your code HERE

In code tags.

your code is doing exactly what you've told it. Assuming you fixed the syntax error involving the ; at the end of this first line:

if(inputString == "c")[color=red];[/color]
{
  for (i = 1000; i <= 1500; i++)
  {
    tone(10, i);
    delay(2);
  }
 
 for (i = 1500; i >= 1000; i--)
  {
  tone(10, i);
  delay(2);}
  }

  //siren stops here and tone continues - either send noTone() or add a loop in

}