19.07.2010, 10:20
Alright so I'm trying to save the player's name into an enum, the problem is.
When I do this:
It gives me this error:
But if I do this:
It compiles perfectly...
What I want to do is to get "PlayerInfo[playerid][pName] = ReturnPlayerName(playerid);" working perfectly.
Notes:
PlayerInfo[playerid][pName]'s array is [32], and it's in a public enum.
name's array is [32], and it's inside the command I'm using.
When I do this:
pawn Код:
PlayerInfo[playerid][pName] = ReturnPlayerName(playerid);
Код:
error 047: array sizes do not match, or destination array is too small
pawn Код:
name = ReturnPlayerName(playerid);
PlayerInfo[playerid][pName] = name;
What I want to do is to get "PlayerInfo[playerid][pName] = ReturnPlayerName(playerid);" working perfectly.
Notes:
PlayerInfo[playerid][pName]'s array is [32], and it's in a public enum.
name's array is [32], and it's inside the command I'm using.