maxorator Posted February 26, 2006 Share Posted February 26, 2006 When compiling VC:MP, I get the following errors: In file included from vcmp/main.h:65, from vcmp/subclass.cpp:29:vcmp/net/netgame.h:63: error: variable or field `PlayerSync' declared voidvcmp/net/netgame.h:63: error: expected `;' before '(' tokenvcmp/net/netgame.h:64: error: variable or field `VehicleSync' declared voidvcmp/net/netgame.h:64: error: expected `;' before '(' tokenvcmp/net/netgame.h:65: error: variable or field `ConnectionSucceeded' declared voidvcmp/net/netgame.h:65: error: expected `;' before '(' token It points to: void PlayerSync(Packet *p);void VehicleSync(Packet *p);void ConnectionSucceeded(Packet *p); What's wrong?? Link to comment Share on other sites More sharing options...
FalconGT Posted February 26, 2006 Share Posted February 26, 2006 When compiling VC:MP, I get the following errors: In file included from vcmp/main.h:65, from vcmp/subclass.cpp:29:vcmp/net/netgame.h:63: error: variable or field `PlayerSync' declared voidvcmp/net/netgame.h:63: error: expected `;' before '(' tokenvcmp/net/netgame.h:64: error: variable or field `VehicleSync' declared voidvcmp/net/netgame.h:64: error: expected `;' before '(' tokenvcmp/net/netgame.h:65: error: variable or field `ConnectionSucceeded' declared voidvcmp/net/netgame.h:65: error: expected `;' before '(' token It points to: void PlayerSync(Packet *p);void VehicleSync(Packet *p);void ConnectionSucceeded(Packet *p); What's wrong?? You'll need to add ID_PLAYER_SYNC,ID_VEHICLE_SYNC,ID_PASSENGER_SYNC,ID_RCON_COMMAND to: PacketEnumerations.h then it'll compile... Link to comment Share on other sites More sharing options...
maxorator Posted February 27, 2006 Author Share Posted February 27, 2006 Thanks! I'll try it out. Link to comment Share on other sites More sharing options...
maxorator Posted February 27, 2006 Author Share Posted February 27, 2006 (edited) I still get the same errors. I don't get that error if I replace "Packet" with "int" for example. Looks like I don't have Packet type declared, because if I try to define just "Packet somename;" it says Packet is not a type. Edited February 27, 2006 by maxorator Link to comment Share on other sites More sharing options...
FalconGT Posted February 27, 2006 Share Posted February 27, 2006 What version of raknet are you using? Link to comment Share on other sites More sharing options...
maxorator Posted February 28, 2006 Author Share Posted February 28, 2006 I use Raknet 2.201 for MinGW because I use MinGW compiler. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now