fre
2011-08-02 07:28:52
Hey all,
i would like to add a tile to an TileArray
but when i use the code below( this is not the whole code) i get a "type mismatch" error.
Can anyone teach me how to add tiles to an already existing array of tiles?
Help would be greatly appreciated.
i would like to add a tile to an TileArray
but when i use the code below( this is not the whole code) i get a "type mismatch" error.
Can anyone teach me how to add tiles to an already existing array of tiles?
var
objs:TRSObjectArray;
ChosenTiles : TTileArray;
i:integer;
begin
objs := R_GetObjectsEX([.....], ., ..);
for i := 0 to high (objs) do
begin
WalkPath([objs[i].tile])
ChosenTiles := ChosenTiles + objs[i].tile <-------------
end;
end;
Help would be greatly appreciated.