monday
Expert
- Joined
- Jun 23, 2014
- Messages
- 1,127
- Solutions
- 1
- Reaction score
- 158
Hi, I have a problem with understanding how it should be done because there are only 16 bytes at szPlayerName. Is it somehow coded into 2 chars per byte or is there any other way?
Code:
struct stRemotePlayer
{
stRemotePlayerData *pPlayerData; //0
int iIsNPC; //4
void *pVTBL_txtHandler; //8
union //12
{
char szPlayerName[16];
char *pszPlayerName;
};
int iNameLen; //28
int iNameAllocated; //32
int iScore; //36
int iPing; //40
};