I don't exactly know if ptr_for_handle has a bug or not; but after some searchin on the forum and manual i thought there might be a bug at the ptr_for_handle function. When i save a panel's handle to a variable and callback the panel's pointer from ptr_for_handle i get an error message or my code doesnt work right. I made a test both with an entity and a panel. For entity everythng works perfect as it has to be but when it comes to panel problem beguns. Is thre something i have to do extra to convert a panels handle to a pointer; or is this a bug?? If u reply me with info about it i ll be real glad. I ll try a workaround or wait for next update to change the script of my project according to ur reply...
Best Regards

PS: I use A7 10.1 Comm. Edition...
I also added the script of my test to the bottom of the post...

Code:
#include <acknex.h>
#include <default.c>

PANEL* dummy_pan;
ENTITY* dummy_ent;

var handle_var;

void main()
{
	wait(4);
	level_load("villa_terrain_2.hmp");
	wait(4);
	camera.tilt=-15;
	
	dummy_pan=pan_create("bmap = 350z_tablo.bmp;",1);
	handle_var = handle(dummy_pan);
	you=ptr_for_handle(handle_var);
	set(you,VISIBLE);
	
	wait(2);
	
	dummy_ent=ent_create("masa4.mdl",vector(0,0,0),NULL);
	handle_var = handle(dummy_ent);
	you=ptr_for_handle(handle_var);
	set(you,TRANSLUCENT); 
}


Model becomes transparent, but panel doesnt become visible with ptr_for_handle.