Forum in READ ONLY mode! All questions and discussions on Discord official server, invite link: https://discord.gg/VxsGzJ7

Script Error

Ask for help
Post Reply
01101011
Neophyte
Neophyte
Posts: 21
Joined: 17.01.2019 0:19

Script Error

Post 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.
User avatar
Vizit0r
Developer
Developer
Posts: 3958
Joined: 24.03.2005 17:05
Contact:

Re: Script Error

Post by Vizit0r »

this time i deep inside PS, and found a small bug, which produce this error.

fixed.
"Пишите код так, как будто сопровождать его будет склонный к насилию психопат, который знает, где вы живете". (с) Макконнелл, "Совершенный код".
Post Reply