turbobk
2008-08-11 08:40:36
Me and skilld u, are working on a script at the moment and after updating to the latest Reflection revision I get this Error:
[Runtime Error] : Invalid Opcode Parameter in line 32 in script C:\Program Files\SCAR 3.15\includes\SRL\SRL\Reflection\Walking.Scar
Which is this line:
Has anyone else got this problem and/or know how to fix?
Thanks alot,
TurboBk :)
[Runtime Error] : Invalid Opcode Parameter in line 32 in script C:\Program Files\SCAR 3.15\includes\SRL\SRL\Reflection\Walking.Scar
Which is this line:
{*******************************************************************************
procedure R_FFlag(Distance: Integer);
By: ZephyrsFury
Description: Similar to the original except it uses Reflection.
*******************************************************************************}
procedure R_FFlag(Dist: Integer);
var
Dx, Dy, Tx, Ty, m, d1, d2, w, h: Integer;
begin
while (GetFlag(Dx, Dy)) do //<---- Line 32
begin
w := (Dx - GetMyPos.x) * 4;
h := (Dy - GetMyPos.y) * 4;
d1 := Round(Sqrt(Sqr(w) + Sqr(h)));
if (d1 >= Dist) then
beginHas anyone else got this problem and/or know how to fix?
Thanks alot,
TurboBk :)