Jump to content
Sign in to follow this  
gnrnr

Scripting help needed

Recommended Posts

Hi all,

I am getting the following error report in my arma.rpt file:

Error in expression <if ((Count _targets) == 0) then {Goto "MoveTo>

 Error position: <Count _targets) == 0) then {Goto "MoveTo>

 Error count: Type Number, expected Array,Config entry

My understanding is that _targets was unable to be "Count"ed as it was a number not an array.

The script before this location reads:

if ((TypeName _targets) != "ARRAY") then {[Format["%1Targets are not an array", _sideText]] Call TRACE; goto "MoveToLocation"};

Again, as i understand this, if _targets is not an array (eg number) the script should go to the moveToLocation within the script.  This should mean that the Count _targets should never have been encountered.  

Have I done something wrong?  The code in question is within an *.sqs file.

Regards

Gnrnr

Share this post


Link to post
Share on other sites

you need to post this in the mission editing section... the gurus over there will be able to help you

Share this post


Link to post
Share on other sites

It would help if you could post the whole script.

Share this post


Link to post
Share on other sites

I'm moving this discussion over to the user missions forum.

Regards

gnrnr

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

×