else { if(%calcfunc $= "sin") { if(%a >= 1) { %c = %a; mSin(%a); if(%b $= "rad") { messageclient(%client, '', '<color:ffffff>CC (Sin): \c2Sin(%1) <color:ffffff>= \c2%2', %c, %a); } }
... why the hell did you put the code as an image...is it possible the function is mSine()?
it says that in mSine(val), val is a number between negative pi and positive pi.i see no error checking for this info.
mSin(%a); to %a = mSin(%a);mSin doesn't set %a to the sine of %a, it returns the sine of %a, so you must set %a to it.
==>mSine();<input> (0): Unable to find function mSine
Be very cautious that Torque uses radians for trigonometric operations.Do mSin(mDegToRad(%val))