2 room errors

Started by geork, Wed 11/03/2009 17:08:27

Previous topic - Next topic

geork

 hey Ags!
    I've just tried to run my room (it worked fine earlier), but then I tried some coding in my first room file and BANG! I get these two error messages, I must have done something silly...I cleared up any additions I had made but still had these errors when I tried to compile:
    Error1:
 Failed to save room room1; details below
                         

    Error2: my code looks normal, but when I try and compile this;
       
Code: ags
 // room script file

function hHotspot1_AnyClick()
{
  Display("ahh, my prized chicken tickka masala collection");
} //etc etc etc
     

   but the error complains that:
 Runtime error: Functon still open, missing }
                                                       

    This error is related to line 1 (the //room script file), and I can't understand why. I tried putting a } there but naturally, that didn't work
      Thanks
         Geork

paolo

Ah, the dreaded missing } error...

This means there is a missing } somewhere in your room script, but the compiler can't tell where. You'll need to go through the file carefully looking for where you have left out a }.

Gilbert

Hint: Use the 'Match Brace' feature of the script editor to check if the braces are paired up appropiately.

geork

thankyou!!!!!!!!
  thankyou very much! problem solved ;D

SMF spam blocked by CleanTalk