- Home /
Javascript errors
I am scritpting whith monoDevelop and I have build an script....
in the next code:
{ else if (Physics.Raycast (v3_right, v3_hit, hit, 2.5, layerMask.value))
it give me the errors...
Unexpekted token: else. (BCE0043)
";" expexted. insert a semicolon at the end. (UCE0001)
And in this code:
Texture play after t_jumpReadyTextures;
it says...
expecting }, found Texture. (BCE0044)
expecting }, found "play".(BCE0044)
";" expexted. insert a semicolon at the end. (UCE0001)
¿¿¿¿¿¿What can I do??????
Answer by Eric5h5 · Jan 01, 2012 at 03:06 AM
You can't write
{ else if
Get rid of the "{". Or if it has to be in a separate scope, get rid of the "else".
As for this:
Texture play after t_jumpReadyTextures;
That's not Javascript, or any other language; it's just random words.
Answer by e_m_l_i_a_n_o · Jan 01, 2012 at 04:33 PM
and in the code..
`public var jumpSprite : JumpSpriteManager;`
it says that the name JumpSpriteManager
does not denote a valid ("not found")