(TECH) Send SMS if variable = x with Arduino IDE

Well maybe I am luckier with this question:
I have this code that sends me a automatic predefind text via SMS when a SMS text is received but I want to receive the content of a variable which I can not succeed for some reason.

[code] if (LSMS.available()) // if received a SMS from another cellphone
{
LSMS.remoteNumber(num, 20);
LSMS.remoteContent(buf_contex, 50);

sprintf(buffer, "Get new sms, content: %s, number: %s \r\n", buf_contex, num);
Serial.println(buffer);

if (strcmp("GPS", (char*)buf_contex) == 0)                     // if the SMS content is 'GPS', then send the GPS information of RePhone back to the sender
{

  //change var "buttonPushCounter" with "txt" to be automatically sent back when sms with GPS text is received
  sprintf(buffer, "buttonPushCounter", buttonPushCounter = 0);
  Serial.println(buffer);

  if (LSMS.ready())
  {
    LSMS.beginSMS(num);
    LSMS.print(buffer);

    if (LSMS.endSMS()) Serial.println("SMS sent ok!");
    else Serial.println("SMS send fail!");
  }
  else Serial.println("SMS no ready!");
}

}
LSMS.flush();
//}
[/code]

The code is from Dog Collar example.

Thank you!

P.S. unbelievable, after more than 400 views nobody had any advice for my previous question :frowning: