Hi, iam kind of new to c-lite script and have read the tutorials, but i still dont see what i do wrong in the next piece of code. It must be something simple i forgot but i cant figure it out so i post...
///////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////
#include <acknex.h>
#include <default.c>
var Force = 10;
var fliegwiel_m = 75;
var fliegwiel_r = 0.2;
var krukas_l = 0.3;
var starthoek_krukas;
var draaihoek = 0;
var koppel;
var hoekversnelling;
var traagheidsmomentFliegwiel;
SOUND* dieselhit = "singledieselhit.wav";
function hoeksnelheid()
{
while(1)
{
koppel = fliegwiel_r * sinv(starthoek_krukas + (draaihoek-180)) * Force;
hoekversnelling = (koppel/traagheidsmomentFliegwiel)/57;
draaihoek +=1;
if(draaihoek == 90)
{
snd_play(dieselhit,100,0);
}
wait(-1/hoekversnelling);
}
}
function main()
{
traagheidsmomentFliegwiel = (0.5 * fliegwiel_m * fliegwiel_r^2);
starthoek_krukas = acosv(fliegwiel_r/krukas_l);
hoeksnelheid();
}
I get the following error;
MAIN line 49:syntax error:cant convert:XOR:DOUBLE:DOUBLE:LONG
I dont realy undertsand it...