ShadowMancer
06-05-2007, 01:22 AM
ok, i am almost done writeing my first real zscript
after much editing i am still left with one confuseing compile error..
the line:
return abs((Link->x - x) + (Link->y - y))
the error:
function abs is a unknown function
???!
abs is a built in function right?
ok, i see it is 'float abs()' in the docs
i am passing an int
could that be the problem?
i tried various attempts such as
return float abs()
get something about an unexpected float in token int
any ideas??
btw thank you DarkDragon for your answers to my previous questions :thumbsup:
after much editing i am still left with one confuseing compile error..
the line:
return abs((Link->x - x) + (Link->y - y))
the error:
function abs is a unknown function
???!
abs is a built in function right?
ok, i see it is 'float abs()' in the docs
i am passing an int
could that be the problem?
i tried various attempts such as
return float abs()
get something about an unexpected float in token int
any ideas??
btw thank you DarkDragon for your answers to my previous questions :thumbsup: