in int inscribe(int s,long snum) change if ((items[i].id1=='\x0E')&&(items[i].id2=='\x34')) to if ((items[i].id1==0x0E)&&(items[i].id2==0x34))