HarryJames
2011-02-27 11:26:21
I'm back again, too soon methinks.. It's a learning process!
Why does this just give an error message of 'Error: Could not call proc at line 259'?
And why can't I call 'MyNPC := SortNPCs(GetNPCs);' to get all of the NPCs around me?
~Harry
*Remade this thread in the correct section*
It is the decleration of the proc.
Procedure attackEnemy;
var
NPCs : TNPCArray;
I, II : Integer;
Begin
if (infight) then exit;
NPCs := SortNPCs(GetNPCs(['Tz-Kih','Tz-Kek','Tok-Xil']));
For I:=0 to high(NPCs) do
begin
Writeln('[' + ToStr(I) + ']Name: ' + NPCs[I].Name + '(' + ToStr(NPCs[I].Tile.X) + ', ' + ToStr(NPCs[I].Tile.Y) + ') ID: ' + ToStr(NPCs[I].ID) + ' - Index:' + ToStr(NPCs[I].Index));
Writeln(' Orientation: ' + ToStr(NPCs[I].Orientation) + ' - Level: ' + ToStr(NPCs[I].Level) + ' - Animation:' + ToStr(NPCs[I].Animation) + + ' - HPRatio:' + ToStr(NPCs[I].HPRatio));
Writeln(' Moving:' + ToStr(NPCs[I].Moving) + ' - InFight:' + ToStr(NPCs[I].Fighting) + ' - Interacting:' + ToStr(NPCs[I].Interacting) + ' - Height:' + ToStr(NPCs[I].Height));
Writeln(' Actions:');
For II:=0 to High(NPCs[I].Actions) do
Writeln(' ' + NPCs[I].Actions[II]);
end;
end; Why does this just give an error message of 'Error: Could not call proc at line 259'?
And why can't I call 'MyNPC := SortNPCs(GetNPCs);' to get all of the NPCs around me?
~Harry
*Remade this thread in the correct section*
From: Zyt3x
What line is line 259?
It is the decleration of the proc.