03.08.2013, 11:47
pawn Код:
enum a {
str[MAX_PLAYER_NAME];
}
new array[MAX_PLAYERS][a];
public OnPlayerConnect(playerid) {
GetPlayerName(playerid, array[playerid][str], MAX_PLAYER_NAME);
}
returnPlayerName(playerid) {
new name[MAX_PLAYER_NAME];
format(name, sizeof(name), "%s", array[playerid][str]);
return name;
}