hi i have 2 errors in Procolos.cpp
My Procololos.cpp
I get this error at the time of desbugCode:#include "Protocolos.h" #include "GameServer.h" #include "Global.h" BYTE ProtocolServer (BYTE Tipo){ switch(Tipo){ case 0x1D: return 0xD3; case 0xD6: return 0xDF; case 0xDC: return 0xD7; } return Tipo; } BYTE ProtocolClient (BYTE Tipo){ switch(Tipo){ case 0xD3: return 0x1D; case 0xDF: return 0xD6; case 0xD7: return 0xDC; } return Tipo; } WORD MakeWord (BYTE loByte,BYTE hiByte) { WORD x = 0; _asm { XOR EAX,EAX MOV AL,loByte MOV AH,hiByte MOV x,AX } return x; } bool ProtocolCore(BYTE ProtocolID,PBYTE tpProtocol,DWORD ProtocolLen,DWORD PlayerID,DWORD bEncrypt,int EncryptSerial) { BYTE ProtocolType; BYTE pProtocol[pMaxLen]; memcpy(pProtocol,tpProtocol,ProtocolLen+1); if((pProtocol[0]==0xC1)) { switch(BYTE(ProtocolID)) { case 0x10: ProtocolID = 0xD7; break; } } switch(BYTE(ProtocolID)) { case 0x03: GCServerMsgStringSend(ConnectNotice,PlayerID,0); //( I NOTED THE ERROR HERE) break; } DataRecv(ProtocolID, pProtocol, ProtocolLen, PlayerID, bEncrypt, EncryptSerial); return true; }
Code:1 Error C2064: The term is not evaluated as a function with 3 arguments 2 Error C2143: syntax error: missing ')' before ';'
Please Help


Reply With Quote

