ok, i got this from AUM 17, so i can guess its A5. i have been trying to make it A6, but I am lost, nothing works at all. can someone look at it to see whats wrong? I am trying to add an animated menu panel for my project, and i am having issues.

Code:
/////////////////////////////////////////////////////////////////////////////////////////

bmap panel_pcx = <panel.pcx>;

/////////////////////////////////////////////////////////////////////////////////////////

panel energy_pan // background panel
{
	bmap = panel_pcx;
	layer = 20;	
	pos_x = 0;
	pos_y = 0;
	flags = d3d, overlay, refresh, visible;
}

entity energy_sprite 
{ 
	type = <energy+10.pcx>; 
	layer = 25; 
	view = camera; 
	x = 350; 
	y = 134; 
	z = 124; 
	flags = visible, flare, bright;
} 

function init_animsprite() 
{ 
	while (1) 
	{ 
		energy_sprite.frame += 0.3 * time_step; 
		if (energy_sprite.frame > 10) 
		{
			energy_sprite.frame %= 10; // loop
		}
		wait (1); 
	} 
}




My Famous Quotes: "Hip hop is like a virus, infecting everyone and everything around it. Every form of media has some way,shape or form, assimilated hip hop into it." It has also mutated into other strains like, trip hop, house, rap, gangster, and conscious forms. Once you are infected with it, its with you for life."