Problem with function importing (SOLVED)

Started by Akumayo, Sun 01/01/2006 18:35:49

Previous topic - Next topic

Akumayo

Probably a stupid mistake, but I can't get this function to imort.  The following line is located in a module's script header:
Code: ags

import function GetNumber(TextValueOption param);


The error is simply "Parse error at 'TextValueOption'"

What did I do wrong this time?
"Power is not a means - it is an end."

strazer

Have you defined the enum in the script header? Otherwise it's unknown to anything outside the module script, including the function import line.

Akumayo

Hey, thanks strazer, I had the enum name different from the function name.  :P
"Power is not a means - it is an end."

SMF spam blocked by CleanTalk