Oops... my extra line messed it up!

I get the folowing error:
Quote:
Syntax error:Can't convert MOD:FLOAT:FLOAT:FLOAT.
<seconds%=3600;>


Complete code:
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?)

Last edited by Carlos3DGS; 01/11/12 13:47.

"The more you know, the more you realize how little you know..."

I <3 HORUS
http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=401929&page=1