Thanks, it worked!
However, i have a new problem now

....
code:
"
///////////////////////////////////////////////////////////////
#include <acknex.h>
#include <default.c>
typedef struct {
var Active;
} LISTBOX;
LISTBOX* ListBoxArray[100];
var Debug_1 = 0;
function extra()
{
while(1)
{
Debug_1 = ListBoxArray[0].Active;
wait(1);
}
}function main()
{
level_load("");
wait(3);
LISTBOX Test;
ListBoxArray[0] = &Test;
ListBoxArray[0].Active = 1;
extra();}
PANEL* Debug_Pan =
{
flags = VISIBLE;
digits = 100,100,8.4,*,1,Debug_1;
}
"
The panel should display "1"...I think...but it shows "2040952.2500"...
I am sure I there's something wrong, but I do not find it!
Using this code (with the loop in the main function) the panel displayed "1":
"
///////////////////////////////////////////////////////////////
#include <acknex.h>
#include <default.c>
typedef struct {
var Active;
} LISTBOX;
LISTBOX* ListBoxArray[100];
var Debug_1 = 0;
function main()
{
level_load("");
wait(3);
LISTBOX Test;
ListBoxArray[0] = &Test;
ListBoxArray[0].Active = 1;
while(1)
{
Debug_1 = ListBoxArray[0].Active;
wait(1);
} }
PANEL* Debug_Pan =
{
flags = VISIBLE;
digits = 100,100,8.4,*,1,Debug_1;
}
"