Autor Beitrag
Fabian W.
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1766

Win 7
D7 PE
BeitragVerfasst: So 05.02.06 13:53 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
procedure Shot(actor: TImage);

...

var SHOT: array[0..99] of TImage;

...

procedure TForm1.Shot(actor: TImage);
var
x: integer;
begin
For x := 0 to 99 do
  begin
  if SHOT[x] = nil then
    Begin
    SHOT[x] := TImage.Create(PlayPanel);
    Shot[x].picture.loadfromfile(extractfilepath(paramstr(0))+'\Pictures\shot.bmp');
    break;
    end;
  end;
end;


Zitat:
[Fehler] hf.pas(107): E2035 Nicht genügend wirkliche Parameter


Was mache ich falsch????
Amateur
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 777

(Win98, WinMe) WinXP Prof
D3 Prof, D6 Pers, D2k5 Pers., Turbo C++ Explorer
BeitragVerfasst: So 05.02.06 14:20 
ich schätz mal es liegt daran dass du eine procedure und eine variable mit dem gleichen namen shot hast. delphi unterscheidet nicht zwischen groß und kleinschreibung. benenn mal eines der beiden um.

_________________
"Kein dummes Gerede. Kein Rumrätseln. Denkt an nichts anderes mehr, nur noch an das, was vor euch liegt. Das ist die wahre Herausforderung. Ihr müßt euch vor euch selbst schützen, Leute." (Rennes in "Cube")
Beiträge: >700
Fabian W. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1766

Win 7
D7 PE
BeitragVerfasst: So 05.02.06 14:27 
ne, die procedure hieß ja auch shot, deshalb


danke für den Denkanstoss!