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

Started by xenogia, Thu 21/05/2009 02:18:16

Previous topic - Next topic

xenogia

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?

Trent R

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
To give back to the AGS community, I can get you free, full versions of commercial software. Recently, Paint Shop Pro X, and eXPert PDF Pro 6. Please PM me for details.


Current Project: The Wanderer
On Hold: Hero of the Rune

SMF spam blocked by CleanTalk