noway123
2012-02-07 17:41:08
My Error:
My code:
[PHP]procedure DropAllEx;
var
Fish, i: Integer;
begin
if(not LoggedIn) then exit;
if(not InvCount > 26) then exit else
begin
Fish := DTMFromString('mlwAAAHicY2dgYLBlYmCwBGJnIPYGYicgtg ZiEyB+AZT/AMRvgfghEN8G4sdA/A6IZ02eDCSZsOL/DLgBIx4MBQB4Ngrv');
for i := 1 to 28 do
if(ExistsItemDTM(Fish, ItemCoords(i).x, ItemCoords(i).y)) then DropItem(i);
FreeDTM(Fish);
end;
end; [/PHP]
If i remove this code it works…
[PHP]for i := 1 to 28 do
if(ExistsItemDTM(Fish, ItemCoords(i).x, ItemCoords(i).y)) then DropItem(i);[/PHP]
I cant find my error. Can you help me :confused:.
Noway123
[Error] (1:1): Variable Expected at line 0 My code:
[PHP]procedure DropAllEx;
var
Fish, i: Integer;
begin
if(not LoggedIn) then exit;
if(not InvCount > 26) then exit else
begin
Fish := DTMFromString('mlwAAAHicY2dgYLBlYmCwBGJnIPYGYicgtg ZiEyB+AZT/AMRvgfghEN8G4sdA/A6IZ02eDCSZsOL/DLgBIx4MBQB4Ngrv');
for i := 1 to 28 do
if(ExistsItemDTM(Fish, ItemCoords(i).x, ItemCoords(i).y)) then DropItem(i);
FreeDTM(Fish);
end;
end; [/PHP]
If i remove this code it works…
[PHP]for i := 1 to 28 do
if(ExistsItemDTM(Fish, ItemCoords(i).x, ItemCoords(i).y)) then DropItem(i);[/PHP]
I cant find my error. Can you help me :confused:.
Noway123