Newbie Spellweaver
- Joined
- Apr 10, 2008
- Messages
- 27
- Reaction score
- 0
error C2061: syntax error : identifier 'vector'
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);
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);
Seems to work fine but... What does the std:: does?
Here's my code btw, it seems the one he pasted don't have the "<"s and the ">"s xD.
C++ programmers have the option of using the standard std::string class defined in ISO/IEC 14882. The std::string generally protects against buffer overflow.
Seems to work fine but... What does the std:: does?
Here's my code btw, it seems the one he pasted don't have the "<"s and the ">"s xD.
#ifndef PLAYERSPACK_H
#define PLAYERSPACK_H
class Player;
class Packet;
class PlayersPacket {
public:
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);
static void showMassage(char* msg, char type);
static void showInfo(Player* player, Player* getinfo);
static void showNoticeOneChar(char* msg, char type, Player* player);
};
#endif
Compile fine tyvm :winky:compiles fine
here
#ifndef PLAYERSPACK_H
#define PLAYERSPACK_H
class Player;
class Packet;
class PlayersPacket {
public:
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);
static void showMassage(char* msg, char type);
static void showInfo(Player* player, Player* getinfo);
};
#endif
#ifndef PLAYERSPACK_H
#define PLAYERSPACK_H
class Player;
class Packet;
class PlayersPacket {
public:
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);
static void showMassage(char* msg, char type);
static void showInfo(Player* player, Player* getinfo);
static void PlayersPacket::ShowNotice(Player* player, char* msg, char type);
};
#endif
It gives them STDsCan anyone explain what the hell this does besides add std:: to a couple of lines