Home   Help Search Login Register  

Author Topic: ? ((getWPPos [_group,1]) != _pos) : goto...  (Read 960 times)

0 Members and 1 Guest are viewing this topic.

Offline Lone~Wolf

  • Mission Tools & Mods
  • Members
  • *
  • Vladimir Dmitri Mikhail Andreevich Stamenov
? ((getWPPos [_group,1]) != _pos) : goto...
« on: 15 Mar 2010, 21:13:16 »
Oh dear, me again.

I keep getting the error message when the quoted code is run that it's trying to compare two different variables, where one of them is NOT an array!

I have defined both as an array!

Code: [Select]
_pos = getWPPos [_group,1]
#LOOP
_temppos = (getWPPos [_group,1])
? (_temppos != _pos) : goto "WPCHK"

Help?  :confused:

[EDIT] Okay, I have a working solution to this,

Code: [Select]
? ((_temppos select 0) != (_pos select 0)) || ((_temppos select 1) != (_pos select 1)) || ((_temppos select 2) != (_pos select 2)) : goto "WPCHK"
« Last Edit: 15 Mar 2010, 21:28:19 by Lone~Wolf »
Snarling creature, lurking in the background, still writing in .sqs