SRL Archive - Help and Support

Identifier expected


Bobarkinator

2007-06-08 14:18:58

In this fighting procedure, no it's not what it's going to be, just all i have so far, I'm getting an identifier expected in the parameters out the procedure. If someone could help me fix this that would be great.

procedure Fight(WhichArray: LongInt;);//so the real error is here.
var I : Integer;//The line is here but we all know it's one line above the actual
begin
for I:= 0 to GetArrayLength(WhichArray)-1 do
FindObj3(x,y,MonsterText,WhichArray[i],8);
end;

So if anybody could help me that would be great.

shaunthasheep

2007-06-08 14:24:09

remove the ; after longint, and i don't think theres a diffrent between longint and integer…

Bobarkinator

2007-06-08 14:24:43

tried that then get a semicolan expected error. Also the only difference is long int supports decimals. But i looked at the manual and whenever Freddy was defining an array he always used Longint so I figured I owuld also.

Boreas

2007-06-08 14:39:15

procedure Fight(WhichArray: LongInt);

Bobarkinator

2007-06-08 14:56:26

I tried that boreas and it gives me semicolan error. But Nielsie fixed it :) changed longint to array of integer :duh:

n3ss3s

2007-06-11 10:59:53

Yes, LongInt is not an array :)
But I think its possible to make array of LongInt;