Code:
function buttonpro(var i){
	switch (i)
	{
		case 0:
			gv=2;	
		break;
		case 1:
			gv=3;
		break;
	}
}	

pan_setbutton(gp[0],0,1, // set a new push button for quitting the game
     			10,10,gb[1],gb[2],gb[3],NULL,buttonpro(1),NULL,NULL);


buttonpro(1) is error,i want set function parameter for buttonpro.is it impossibility?

Last edited by frankjiang; 08/05/10 16:24.

development 3d game is interesting!