var is not a type that is supposed to hold a pointer. This should work:
Code:
STRING *s_view = "#30";
void      *s_function;

function v_change()
{
	if(!s_function)
	{
		error("s_function == NULL!");
		return;
	}

	ent_create(s_view,camera.x,s_function);
}

action v_model()
{
	s_function = engine_getscript("v_model");
	str_cpy(s_view, "v_model.mdl");
}




Shitlord by trade and passion. Graphics programmer at Laminar Research.
I write blog posts at feresignum.com