Code: Select all
function main() {}
function DoStuff()
{
identifier LogFile 0;
Create(LogFile, "log.txt");
// Do whatever with the file here
Close(LogFile);
}
The first error says the compiler doesn't recognize the word "identifier", and the rest of the errors all basically mean that the identifier "LogFile" wasn't defined.C:\Games\EQWatcher Advanced>eqwesc id-test.eas id-test.eac
EQWESC EQWatcher Evolution Script Compiler v1.16 (compiled Wed Sep 17 19:19:02 2
003)
Input: C:\Games\EQWatcher Advanced\id-test.eas
Output: C:\Games\EQWatcher Advanced\id-test.eac
EQWatcher Directory:
Processed 2 globals
identifier LogFile 0;
Error in C:\Games\EQWatcher Advanced\id-test.eas (line 5):
Unrecognized execution-level symbol 'identifier' of type unknown
Create(LogFile, "log.txt");
Error in C:\Games\EQWatcher Advanced\id-test.eas (line 6):
Unrecognized execution-level symbol 'LogFile' of type unknown
Create(LogFile, "log.txt");
Error in C:\Games\EQWatcher Advanced\id-test.eas (line 6):
Could not evaluate parameter 1
Create(LogFile, "log.txt");
Error in C:\Games\EQWatcher Advanced\id-test.eas (line 6):
Function call without parameters
Close(LogFile);
Error in C:\Games\EQWatcher Advanced\id-test.eas (line 10):
Unrecognized execution-level symbol 'LogFile' of type unknown
Close(LogFile);
Error in C:\Games\EQWatcher Advanced\id-test.eas (line 10):
Could not evaluate parameter 1
Close(LogFile);
Error in C:\Games\EQWatcher Advanced\id-test.eas (line 10):
Function call without parameters
Please fix errors
<Press any key.>
Thinking that maybe identifiers have to be top-level, I tried:
Code: Select all
function main() {}
identifier LogFile 0;
function DoStuff()
{
Create(LogFile, "log.txt");
// Do whatever with the file here
Close(LogFile);
}
I also tried moving the identifier statement to the main() function, but got basically the same error as the first example above.C:\Games\EQWatcher Advanced>eqwesc id-test.eas id-test.eac
EQWESC EQWatcher Evolution Script Compiler v1.16 (compiled Wed Sep 17 19:19:02 2
003)
Input: C:\Games\EQWatcher Advanced\id-test.eas
Output: C:\Games\EQWatcher Advanced\id-test.eac
EQWatcher Directory:
identifier LogFile 0;
Error in C:\Games\EQWatcher Advanced\id-test.eas (line 3):
Invalid top-level statement
Processed 3 globals
Please fix errors
Any ideas?