31.01.2018, 18:55
Quote:
Code:
public OnPlayerConnect(playerid) { memcpy(PlayerInfo[playerid], PlayerInfo[MAX_PLAYERS], 0, sizeof(PlayerInfo[])*4, sizeof(PlayerInfo[])); } |
Possible fixes:
- Code:
public OnPlayerConnect(playerid) { memcpy(PlayerInfo[playerid][PlayerInfo_t:0], PlayerInfo[MAX_PLAYERS][PlayerInfo_t:0], 0, sizeof(PlayerInfo[])*4, sizeof(PlayerInfo[])); }
- Use playerInfo_t instead of PlayerInfo_t. This would resolve the warning because weak tags are convertible to _:.
- Do direct assignment: Code:
PlayerInfo[playerid] = PlayerInfo[MAX_PLAYERS];