Can't get pan_setdigits to work

Posted By: Sub_Game

Can't get pan_setdigits to work - 06/28/10 09:04


I'm having some trouble with making my HUD. This code executes and then crashes due to the pan_setdigits line.

Where am I going wrong with pan_setdigits?

Code:
wpn_pnl = pan_create(NULL,0);
pan_setdigits(wpn_pnl,0,300,200,2,"Arial#40",1,sys_seconds);
set(wpn_pnl,SHOW);


Posted By: Helghast

Re: Can't get pan_setdigits to work - 06/28/10 09:15

does it work when you do it like the manual does:

Quote:

PANEL* my_panel = pan_create(NULL,0);
pan_setdigits(my_panel,0,300,200,"%2.f",font_create("Arial#100"),1,sys_seconds);
set(my_panel,SHOW);


regards,
Posted By: Sub_Game

Re: Can't get pan_setdigits to work - 06/28/10 10:46

Code:
wpn_pnl = pan_create(NULL,0);
pan_setdigits(wpn_pnl,0,300,200,"%2.f",font_create("Arial#100"),1,sys_seconds);
set(wpn_pnl,SHOW);


This works! Thank you.
© 2024 lite-C Forums