Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: RYaNrYe on Mon 28/07/2008 12:02:28

Title: Unexpected eof error
Post by: RYaNrYe on Mon 28/07/2008 12:02:28
I've looked over the script so many times but i can't see what i've done wrong  :-\

here's my script

// room script file


#sectionstart room_a  // DO NOT EDIT OR REMOVE THIS LINE
function room_a() {
  // script for Room: Player enters room (after fadein)
StartCutscene(eSkipESCOnly);
cEgo.Say("So What have we got on our hands here?");
cCapt.Say("28 year old male shot in the back");
cEgo.Say("Any leads on suspects");
cCapt.Say("Not at the moment but the victim was carrying this");
Wait(40);
cEgo.AddInventory(iabp);
cCapt.Say("It's a page from an address book you should check it out");
cEgo.Say("Thanks i'll do that)
EndCutscene();     
}
#sectionend room_a  // DO NOT EDIT OR REMOVE THIS LINE


can any1 see what i've done wrong???
Title: Re: Unexpected eof error
Post by: DoorKnobHandle on Mon 28/07/2008 12:18:25

cEgo.Say("Thanks i'll do that)

Missing closing " and ;
Title: Re: Unexpected eof error
Post by: Khris on Mon 28/07/2008 12:19:11
Yep, eof always means there's an open string somewhere.
Title: Re: Unexpected eof error
Post by: RYaNrYe on Tue 29/07/2008 20:50:59
cheerz all fixed now :)