Kommt ein bisschen drauf an, wie du das baust.
Delphi-Quellcode:
type
TPlayer = record
Key: Integer;
end;
TPlayerArray = class
private
FPlayers = array of Players;
public
function GetPlayer(Id: Integer): TPlayer;
end;
implementation
function TPlayerArray,GetPlayer(Id: Integer): TPlayer;
begin
Result := FPlayers[Id];
end;
In dem Fall sollte kopiert werden.
Lukas Erlacher
Suche Grafiktablett. Spenden/Gebrauchtangebote willkommen.
Gotteskrieger gesucht!
For it is the chief characteristic of the religion of science that it works. - Isaac Asimov, Foundation I, Buch 1