Page 1 of 1

Script Error

Posted: 17.01.2019 0:34
by 01101011
00:00:00:000 [0000]: Exec: [Error] (script.sc at 134:9): Type Mismatch
line 134: if FindTypesArrayEx(TestType, [$0000], [Ground], false) = 0 then

script +-:

Code: Select all

Program Script;
var
TestType : Array of Word;
Begin
    TestType := [$0C7D,$1A9B,$18E5,$0C60,$0C6F,$0C76,$0C61,$0C57,$18E9,$18DF,$18E1];
    if FindTypesArrayEx(TestType, [$0000], [Ground], false) = 0 then
    begin
    end;
End.
but, script works normally if u put var direct like this:

Code: Select all

Program Script;
Begin
    if FindTypesArrayEx([$0C7D,$1A9B,$18E5,$0C60,$0C6F,$0C76,$0C61,$0C57,$18E9,$18DF,$18E1], [$0000], [Ground], false) = 0 then
    begin
    end;
End.

Re: Script Error

Posted: 17.01.2019 11:56
by Vizit0r
this time i deep inside PS, and found a small bug, which produce this error.

fixed.