SRL Archive - OSR Help

Array of Extended?


Element17

2013-03-05 15:04:23

Function CheckStuff: Boolean;
var
CTS: Integer;
Coords, Color: Array of Integer;
Hue, Sat: Extended;
begin
If(Not(LoggedIn))Then Exit;
I := 0;
Color := [1288552,{Ring}3546718{Hat}];
//Coords :=[34,344];
Hue.M:= [0.56,0.34];
Sat.M:= [0.37, 2.00];
CTS := GetColorToleranceSpeed;
ColorToleranceSpeed(2);
//SetColorspeed2Modifiers(Hue.M, Sat.M);
GameTab(tab_EQUIP);
Begin
SetColorspeed2Modifiers(, Sat.M);
if ColorWait(2000, Color[0], Coords[0], Coords[1], Coords[2], Coords[3], 18) Then
Continue;

Get this error
(729:6): Semicolon (';') expected at line 728
Compiling failed.

Line 728 is
 Hue.M := [0.56, 0.34]; 

Not sure why? I have tried to place a ; in several places but nothing. Note no this is not the complete function.
Is it even possible to have an array of extended?

Le Jingle

2013-03-05 15:17:30

It is possible to have an array of Extended.


var
arr : TExtendedArray;
begin
end.

Element17

2013-03-05 15:23:50

From: Le Jingle
It is possible to have an array of Extended.


var
arr : TExtendedArray;
begin
end.


Mmmm totes sexy haha. Thanks man, learned something new!

Sin

2013-03-05 15:26:14

And also, 'array of Extended' does the same thing :p

Element17

2013-03-05 15:43:12

From: Sin
And also, 'array of Extended' does the same thing :p


It does! I tried it earlier, but I had Hue.M := blah and Sat.M := blah and threw an error. Just had to remove the .m