where would the global go in this?
TYPE EN_TYPE
//------------------------------------------------------------------------------------------------------------------------------------------//
GLOBAL EN_GRAVITY AS FLOAT ://GRAVITATIONAL EFFECT ON OBJECTS
//------------------------------------------------------------------------------------------------------------------------------------------//
GLOBAL EN_STYLE AS INTEGER ://ENVIRONMENT STYLE - 0)NORMAL - 1)WATER - 2)SPACE
//------------------------------------------------------------------------------------------------------------------------------------------//
GLOBAL EN_WIND_FORCE_X AS FLOAT ://WIND FORCE ON THE X AXIS
GLOBAL EN_WIND_FORCE_Y AS FLOAT ://WIND FORCE ON THE Y AXIS
GLOBAL EN_WIND_FORCE_Z AS FLOAT ://WIND FORCE ON THE Z AXIS
//------------------------------------------------------------------------------------------------------------------------------------------//
GLOBAL EN_LEV_TIME_HOUR AS INTEGER ://LEVEL TIME OF DAY (HOUR)
GLOBAL EN_LEV_TIME_MIN AS INTEGER ://LEVEL TIME OF DAY (MINUTE)
GLOBAL EN_LEV_TIME_SEC AS INTEGER ://LEVEL TIME OF DAY (SECOND)
//------------------------------------------------------------------------------------------------------------------------------------------//
GLOBAL EN_REAL_TIME_HOUR AS INTEGER ://REAL TIME OF DAY (HOUR)
GLOBAL EN_REAL_TIME_MIN AS INTEGER ://REAL TIME OF DAY (MINUTE)
GLOBAL EN_REAL_TIME AS INTEGER ://REAL TIME OF DAY (SECOND)
//------------------------------------------------------------------------------------------------------------------------------------------//
ENDTYPE
DIM EN_DATA(0) AS EN_TYPE
it was working fine with the globals as they are then all of a sudden it wasn't. i'm at a loss so i will attempt to follow your advice and see if it works for me. thanks
[EDIT]
I just made a simple test program. it compiled fine with the globals in the "type" declaration.
i added a function to see if the "global" thing was even necessary and it returned my values accurately.
is the whole - placing "global" before your variables - thing outdated or redundant with the way i have set up the included files
in this project?
[EDIT AGAIN]
I removed all the "global"'s like you said and it runs fine.
in the test program that i uploaded, i can compile the code with "global" right before...
dim test(0) as test_type
so it looks like...
GLOBAL dim test(0) as test_type
is this the most effective way of doing this?
does it make all the internal variables of the "type" global?
THANKS SO MUCH!!!
metal is not music but a way of life...all hail to the reigning king METALLICA!!!