It does work:
Code:
///////////////////////////////
#include <acknex.h>
#include <default.c>
///////////////////////////////

void Go()
{
	error("hey!");
}

action Fly()
{	
	set (my, PASSABLE);
	my.skill15 = Go;
}

void main()
{
	fps_max = 60;
	level_load(NULL);
	ent_create(CUBE_MDL, nullvector, Fly);
	
	ENTITY* ent = NULL;
	you = ent_next(NULL);
	while (you) 
	{ 
		if(you)
		{
			ent= you;
			break;
		}
		
		you = ent_next(you); 
	}

	if(ent)
	{
		void act();
		act = ent.skill15;
		act();
	}
}



Probably your ent is undefined as you don't set it to NULL and don't check if the while(you) search has been successful.


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends