Variable 'X' is already imported

Started by Entropy, Mon 03/05/2010 19:17:21

Previous topic - Next topic

Entropy

Hi, new to the forum and to AGS itself, been going well for the past couple days, but lately I keep getting this same error in my scripts.
The Script says this:

function cChar1.Say("blahblahblahblah etc.

or, on my other script

bool gGUI.Visible = false;

and every time I try to run the script I get this same error message:

Failed to save room room1.crm; details below
room1.asc(2): Error (line 2): Variable 'cChar1' is already imported

help?

Calin Leafshade

the  function keyword is for defining NEW funtions.

functions that have already been defined (like say) go inside other functions to be run.

like
Code: ags


function Room_AfterFadeIn(){


cChar1.Say("OMG I can speak!");

}


Entropy

#2
Danke.

SMF spam blocked by CleanTalk