Page 1 of 1

Variable bug?

Posted: Thu Apr 22, 2004 5:07 am
by Smash
Earlier today I was trying to convert a macro over to the new MQ2Data system, but the old variables were not being parsed correctly.

Code: Select all

/declare loc_x global
/declare loc_y global

/varset loc_x ${Me.X}
/varset loc_y ${Me.Y}
When I ran this through the macro, echo'ing out the value of either variable, it would print "@loc_x" or "@loc_y". The only way I could get this fixed, was to remove the underscore from the variables.

As soon as they became "locx" and "locy", everything worked normally. I'm not sure if this is intentional or not, if it was, then I missed a post or two somewhere.

Posted: Thu Apr 22, 2004 7:13 am
by ml2517
Someone just posted this exact thing yesterday. Start reading the forums or you are going to have issues keeping up with Lax.