Code:
void testa()
{
	ENTITY* dummy=NULL;
	while(1)
	{
		if(!dummy)
		{
			wait(-2);
			dummy=ent_create("test.mdl",vector(1,1,1),NULL);
		}
		if(dummy!=NULL)
		{
			wait(-2);
			ptr_remove(dummy);
			//wait(1);
			beep();
			dummy=NULL;	
		}
		
		else
		{
			wait(1);
		}
	}
}



Compulsive compiler