some define trouble

Posted By: onslaught147

some define trouble - 11/10/07 02:55

for some reason when ever i try to define anything the script compiler shows a error. ive tried
define test;
DEFINE test;
define* test;
DEFINE* test;
And evertime the same message comes up
"Error in 'MAIN' line 16: 'define' undeclared identifier
so does anyone know what i should do? could it be i didnt #include the proper file? well any help will be greatly appreciated.ty
Posted By: flits

Re: some define trouble - 11/10/07 15:46

i am not sure but dont you need 2 string for define

like define my.skill1 , test;
Posted By: onslaught147

Re: some define trouble - 11/10/07 19:34

tat doesnt work either thnx for trying though but i still have the same problem which is very annoying
Posted By: MrCode

Re: some define trouble - 11/10/07 22:18

You need to use a fixed number with your defined names.

For instance:

Code:

//C-Script:
define NUMBER, 20;

//Lite-C:
#define NUMBER 20


Posted By: onslaught147

Re: some define trouble - 11/11/07 23:29

thnx MrCode the error doesnt come up any more so now i can implement it except when i look it up in the manual the only tests i see is if it is defined or not is there a vay to transfer certian numbers like for 1 to watever or do i have to settle for the 1 0, on off, tests?
© 2024 lite-C Forums