Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Akumayo on Sun 01/01/2006 18:35:49

Title: Problem with function importing (SOLVED)
Post by: Akumayo on Sun 01/01/2006 18:35:49
Probably a stupid mistake, but I can't get this function to imort.  The following line is located in a module's script header:

import function GetNumber(TextValueOption param);


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

What did I do wrong this time?
Title: Re: Problem with function importing
Post by: strazer on Sun 01/01/2006 19:05:12
Have you defined the enum in the script header? Otherwise it's unknown to anything outside the module script, including the function import line.
Title: Re: Problem with function importing
Post by: Akumayo on Sun 01/01/2006 19:17:31
Hey, thanks strazer, I had the enum name different from the function name.  :P