Sags
2008-11-21 08:33:04
i am trying to find my current tile position but i keep getting errors when i try to run the script, it seems like a simple task but all i want to do is record the tile position i am standing in as i need to update it in a script im trying to get working. ive tried searching the forums and i found this bit of code
but i get this error Line 18: [Error] (18622:15): Invalid number of parameters in script C:\Program Files\SCAR 3.15\Scripts\get tile.scar
any ideas?
{.Include SRL\SRL\Misc\Smart.Scar}
{.Include SRL\SRL.Scar}
{.Include SRL\SRL\Reflection\Reflection.Scar}
Var
X, Y: Integer;
Begin
SmartSetupEX(110, True, True, False);
SetTargetDC(SmartGetDC);
SetupSRL;
//SetupReflection;
ActivateClient;
Wait(2000 + Random(500));
Repeat
If (IsFKeyDown(2)) Then
Begin
GetMyPos(X, Y);
WriteLn(IntToStr(X) + ', ' + IntToStr(Y));
While (IsFKeyDown(2)) Do
Wait(1);
End;
Until False;
End.but i get this error Line 18: [Error] (18622:15): Invalid number of parameters in script C:\Program Files\SCAR 3.15\Scripts\get tile.scar
any ideas?