[Solved] PAWN to C++ global variable [closed]


As tobi303 wrote in the comment, you can use a std::map to accomplish this.

struct e_player_data
{
    int id,
    std::string username
};
std::map<int,e_player_data> PlayerData;

PlayerData[1].id = 1;
PlayerData[2].username = "Firstname_Lastname";

1

solved PAWN to C++ global variable [closed]