--- trunk/h8server/h8serverDlg.cpp 2007/05/27 13:32:36 103 +++ trunk/h8server/h8serverDlg.cpp 2007/05/27 15:03:22 104 @@ -205,8 +205,7 @@ CString senddata, termID, ssum, hellodata1, hellodata2; unsigned char Output[30]; unsigned int price, isum, cash, bytte; - int status; - int intlogid; + int status, intlogid; unsigned char reqID; log l; translog tl; @@ -296,7 +295,6 @@ test = 10; } - //l.logID = "5"; for (int i=3; i < (3+test); i++){ barcode[i-3] = buffer[i]; @@ -305,20 +303,19 @@ eq = CommonStorage::Instance()->getDBLayer()->GetEquipment(barcode,0,0); price = (atoi(eq.price)*100); Output[0] = 1; - Output[1] = 1; - Output[2] = price >> 24; - Output[3] = price >> 16; - Output[4] = price >> 8; - Output[5] = price; - Output[6] = eq.description.GetLength(); + Output[1] = price >> 24; + Output[2] = price >> 16; + Output[3] = price >> 8; + Output[4] = price; + Output[5] = eq.description.GetLength(); int outputlength; - outputlength = Output[6]; - for (int i = 7; i < (7+outputlength); i++){ - Output[i] = eq.description[i-7]; + outputlength = Output[5]; + for (int i = 6; i < (6+outputlength); i++){ + Output[i] = eq.description[i-6]; } Output[outputlength] = '\0'; - worksock.Send(Output,7); + worksock.Send(Output,6); //LOG SKAL LAVES NUUUUUUUUUUUUUUUUUUUUUUU if(intlogid > 0)