Vector3 and Object build errors

Building an fps game for the android/ios, the following two errors appeared when trying to compile the code:

Assets/ZombieScripts/FemZombiev1_AI.js(183,29): BCE0051: Operator ‘*’ cannot be used with a left hand side of type ‘UnityEngine.Vector3’ and a right hand side of type ‘Object’.

Assets/ZombieScripts/FemZombiev1_AI.js(186,39): BCE0051: Operator ‘*’ cannot be used with a left hand side of type ‘Object’ and a right hand side of type ‘float’.

Am i right to understand that this error relates to the calling of the object within the script? All variables are defined within the same script, and compiled correctly for the web versions.

Or if not, can anyone direct me on what the issue is, and ideas on how to fix it,

Thanks,
D

I found that when programming iOS game in Unity you have to be a little more precise with you declarations.

the variables that you are trying to * have to have a type declared.

for example :

for(element in anArray){
    var result = element * 10.0;
}

will not work, where as this will:

for(element : float in anArray){
    var result = element * 10.0;
}

Hope this helps - Caius

The two lines of code which present the two errors:

The 'Object' related error:

direction = forward * speed * speedModifier;
GetComponent (CharacterController).SimpleMove(direction);

The float related error:

SendMessage("SetSpeed", speed * speedModifier, SendMessageOptions.DontRequireReceiver);

Thansk for advice so far, will continue to have a look at this, as these two errors are present in 22 other files using a similar structure.

Thanks, D