Newbie Spellweaver
- Joined
- Apr 10, 2008
- Messages
- 27
- Reaction score
- 0
I have spent a LOT of time trying to figure out why I kept getting this error:
And I have finally figured it out! (This should also slow down server crashes.)
Go to PlayersPacket.h and find this:
Replace with:
Save and build it again and it will work.
error C2061: syntax error : identifier 'vector'
And I have finally figured it out! (This should also slow down server crashes.)
Go to PlayersPacket.h and find this:
Code:
static void showMoving(Player* player, vector <Player*> players, unsigned char* packet, int size);
static void faceExperiment(Player* player, vector <Player*> players, int face);
static void showChat(Player* player, vector <Player*> players, char* msg);
static void damagePlayer(Player* player, vector <Player*> players, int dmg, int mob);
Replace with:
Code:
static void showMoving(Player* player, std::vector <Player*> players, unsigned char* packet, int size);
static void faceExperiment(Player* player, std::vector <Player*> players, int face);
static void showChat(Player* player, std::vector <Player*> players, char* msg);
static void damagePlayer(Player* player, std::vector <Player*> players, int dmg, int mob);
Save and build it again and it will work.