Oops... my extra line messed it up!
I get the folowing error:
Syntax error:Can't convert MOD:FLOAT:FLOAT:FLOAT.
<seconds%=3600;>
Complete code:
float seconds;
while(1)
{
seconds+=time_frame;
seconds%=3600;
Planet.pan=seconds/10;
wait(1);
}
Any ideas on what's wrong? This float dosn't like to be divided or what? lol
EDIT:
Changed seconds to var... That seems to have fixed the error, but the rotation is definately not 1rph...
(I'm not sure if the math is wrong or if it is caused by me changing the float to a var?)