Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: xenogia on Thu 21/05/2009 02:18:16

Title: Already referenced name as import; you must define it before using it
Post by: xenogia on Thu 21/05/2009 02:18:16
When I compile I get the error

Already referenced name as import; you must define it before using it

On this line:
function CustomDialogGui::setAutosizeCorners(int upleft, int upright, int downleft, int downright)

I don't understand this error, can someone explain it to me?
Title: Re: Already referenced name as import; you must define it before using it
Post by: Trent R on Thu 21/05/2009 02:44:06
Well, it's obviously specific to the CustomDialogGui module, but the function setAutosizeCorners is a member of the CustomDialogGui struct.

As for the error, I'm guessing you're using it in a module script that is above the CustomDialogGui script. You can right click modules and 'Move Up' or 'Move Down'.

Unless I'm wrong, in which case that won't help.


~Trent