|
0 registered members (),
5,266
guests, and 3
spiders. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: pan_setdigits
[Re: Widi]
#368371
04/24/11 18:05
04/24/11 18:05
|
Joined: Oct 2004
Posts: 900 Lgh
rojart
User
|
User
Joined: Oct 2004
Posts: 900
Lgh
|
Yes, I had the same problem and I've changed all the 0 to "", because the parameter pv must be a global var* pointer, like this:
#include <default.c>
BMAP* TESTBMAP;
var O = 0;
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);
STRING* Teststring = str_create("Test");
pan_setdigits(Testpan,0,15,7,Teststring,font_create("Arial#100"),1,O); // <-- Testpan gives me the error!
while(1)
{
wait(1);
}
}
And my version without global var pointer.
#include <acknex.h>
#include <default.c>
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);
STRING* Teststring = str_create("Test");
pan_setdigits(Testpan,0,15,7,Teststring,font_create("Arial#100"),1,""); // <-- Testpan gives me the error!
while(1)
{
wait(1);
}
}
Last edited by rojart; 04/24/11 18:21.
|
|
|
|