1 registered members (tomaslolo),
1,542
guests, and 12
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Can't get pan_setdigits to work
#330539
06/28/10 09:04
06/28/10 09:04
|
Joined: Jan 2010
Posts: 40 Adelaide, Australia
Sub_Game
OP
Newbie
|
OP
Newbie
Joined: Jan 2010
Posts: 40
Adelaide, Australia
|
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?
wpn_pnl = pan_create(NULL,0);
pan_setdigits(wpn_pnl,0,300,200,2,"Arial#40",1,sys_seconds);
set(wpn_pnl,SHOW);
Last edited by Sub_Game; 06/28/10 09:06.
|
|
|
Re: Can't get pan_setdigits to work
[Re: Sub_Game]
#330540
06/28/10 09:15
06/28/10 09:15
|
Joined: Jan 2004
Posts: 3,023 The Netherlands
Helghast
Expert
|
Expert
Joined: Jan 2004
Posts: 3,023
The Netherlands
|
does it work when you do it like the manual does: 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,
|
|
|
Re: Can't get pan_setdigits to work
[Re: Helghast]
#330544
06/28/10 10:46
06/28/10 10:46
|
Joined: Jan 2010
Posts: 40 Adelaide, Australia
Sub_Game
OP
Newbie
|
OP
Newbie
Joined: Jan 2010
Posts: 40
Adelaide, Australia
|
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.
|
|
|
|