Discussion Forums at Tactical Neuronics

Re: Re: Re: Variable Looping problems... From:
Robert Jessop

These are the two lines with problems:

> > > ;heres where the numbers, if negative, should be fixed
> > > if value vp < 0 then math vp = #x_pos - #enemy_x

> > > ;next line problem!
> > > if value vw = ~v1 then goto start2

Correct Versions:
> > > if value ~vp < 0 then math vp = #x_pos - #enemy_x
> > > if value ~vw = ~v1 then goto start2

Basically you've got to use the ~ in front of variable names whenever you use their value the only time you use variables without the ~ is immediately after a assign, math or cmath keyword because you are then giving its name rather than asking for its value.

This message is a Reply to: Re: Re: Variable Looping problems... from Nutty

Replies to this message:

© 2001, John A. Reder.