Code center > Solved Bugs

Still get overflows!

<< < (2/3) > >>

PurpleYouko:
You have too many parenthesis in that statement.

Remove the first opening parenthesis and it should run

Testlund:
If you mean removing the parentesis at (CLng close to the beginning of the line it will give a compile error at ^ 2).

If I remove the pasentesis at ^ 0.5) instead I don't get the error, but what if that will mess up the code?

I'll give it a try.

Testlund:
Time to eat your hat nums!

Got run-time error 6 overflow again.

Code:

rob(n).mem(refvelup) = (rob(o).vx * Cos(rob(n).aim) + rob(o).vy * Sin(rob(n).aim) * -1) - rob(n).mem(velup)

Do I have to type in the hovering info again?  :sleep:

PurpleYouko:
temp=(CLng(rob(n).mem(refvelup)) ^ 2 + CLng(rob(n).mem(refveldx)) ^ 2) ^ 0.5)

The highlighted parenthesis looks wrong since it isn't normal to have one before the Clng function.
However I can see whay removal of it would cause a problem further into the code.

Anyway, if my fix posted in the other thread is right then this is entirely beside the point anyway since the problem has been fixed at the source rather than at the symptom.

And again the million dollar question.

Are you running with corpses enabled?

Testlund:
Yup. I guess we're having to topics about the same problem here, don't we. Maybe it's better to delete this one.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version