25.01.2014, 23:09
I think you can not use Char-Array in 2-3 Dimensional array
but you could do this inside an enumerator ( only arrays )
pawn Code:
error 051: invalid subscript, use "[ ]" operators on major dimensions
pawn Code:
#if (defined MAX_PLAYERS)
#undef MAX_PLAYERS
#define MAX_PLAYERS (30)
#endif
enum pInfo
{
pName[ MAX_PLAYER_NAME char]
}
new PlayerInfo[MAX_PLAYERS][pInfo];
public OnPlayerConnect(playerid)
{
return GetPlayerName(playerid, PlayerInfo[playerid]{pName}, MAX_PLAYER_NAME);
}