[PHP]unsigned char x;
int code;
char c[1];
char codein;
while(1){
codein=getchar();
if(codein=='+'){
codein=getchar();
if(codein=='C'){
codein=getchar();
if(codein=='M'){
codein=getchar();
if(codein=='T'){
codein=getchar();
if(codein=='I'){
codein=getchar();
if(codein==':'){
wait_to_get(',');
DrawStringAt(3,0,"in cmti:",YELLOW,GetBkColor());
c[0]=getchar();
sms_location=atoi(c);
if(sms_location>=10)sms_location/=10;
printf("AT+CMGR=%d\r",sms_location);
DrawStringAt(4,0,"send location",YELLOW,GetBkColor());
}
}
}
else if(codein=='G'){
codein=getchar();
if(codein=='R'){
codein=getchar();
if(codein==':'){
DrawStringAt(5,0,"give masage",YELLOW,GetBkColor());
for(x=0;x<3;x++)wait_to_get('"');
DrawStringAt(6,0,"not read",YELLOW,GetBkColor());
for(x=0;x<9;x++)getchar();
DrawStringAt(7,0,"give number phon",YELLOW,GetBkColor());
for(x=0;x<4;x++)number[x]=getchar();
DrawStringAt(8,0,"check if",YELLOW,GetBkColor());
code=atoi(number);
if(code==9031){
DrawStringAt(9,0,"send conditon",YELLOW,GetBkColor());
send_condition();
}
}
}
}
}
}
}
}; [/PHP]
دوستان این برنامه منه با توجه به عکس زیر بعد قسمت give masege گیر میکنه به نظرتون مشکل کجاست؟