ok... just for you, since you didn't read the whole post... I made some changes.
And boy, what a difference it makes. For clarification, these functions live in an include.
Now, on line three of my main source file (which has nothing, not even a comment on it), I get this error:
Parameter for 'vScalar' do not match 'float'
Type Vector
X# as float
Y# as float
Z# as float
EndType
Function vInv(Va as vector)
v as vector
v.x# = Va.x# * -1
v.Y# = Va.Y# * -1
v.Z# = Va.Z# * -1
vRetVal = v
EndFunction
Function vScalar(r#,va as vector)
v as vector
If r# > 0
v.X# = Va.X# * r#
v.Y# = Va.Y# * r#
v.Z# = Va.Z# * r#
else
r# = abs(r#)
vInv(va)
va = vRetVal
vScalar(r#,va)
v = vRetVal
endif
vRetVal = v
EndFunction
rem All that, where vRetVal is a global vector.
Is this what 'support for types' is?
Drac - X
_________________
Excerpt from 'A Day in the Life of Some Guy' ©2003