Since the newest A8.20 i have problems with pan_setdigits, it gives a "Empty pointer in main".

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

var testvar;
BMAP* TESTBMAP;

void main()
{
	level_load (NULL);
	
	TESTBMAP = bmap_createblack(200,200,32);
	bmap_fill (TESTBMAP,vector(0,0,255),70);
	PANEL* Testpan = pan_create("bmap = TESTBMAP;   red = 255;   green = 0;   blue = 0", 1);
	set(Testpan,SHOW);
	
	pan_setdigits(Testpan,0,15,7,4,font_create("Arial#100"),1,testvar);  // <-- Testpan gives me the error!
	
	while(1)
	{
		testvar ++;
		wait(1);
	}
}



Last edited by Widi; 04/24/11 12:18.