Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Creator on Sat 06/06/2009 13:19:57

Title: Buffer exceded in dialog script
Post by: Creator on Sat 06/06/2009 13:19:57
When I try to build/debug my game I get this error:

Dialog 1(55): Error (line 55): buffer exceeded: you probably have a missing closing bracket on a previous line

I tried to find out where I went wrong, but I can't see anything I may have done.
I've marked where line 55 is in the code below.



if (GetGlobalInt(0) == 0) {
  cStk.Say("If you need me I'll be in the library.");
  player.Say("OK.";
  cStk.Walk(5, 164, eNoBlock);
  Wait(120);
  player.FaceCharacter(cStk, eBlock);
  cStk.Walk(5, 164, eBlock);
  cStk.Transparency = 100;
  cStk.FaceLocation(cStk.x, cStk.y-1, eBlock);
  cStk.ChangeRoom(3, 293, 104);
  cStk.Transparency = 0;
  SetGlobalInt(0, 1);
  dExplainations.Start();
}
else {
  player.Say("Bye.");
  cStk.Say("See ya."); //Line 55
}


What have I done?  :-\

EDIT: Never mind. Fixed it. Notice that under the If it says: player.Say("OK.";
Sorry for wasting a topic.  :-[
Title: Re: Buffer exceded in dialog script
Post by: thezombiecow on Sat 06/06/2009 17:29:38
player.Say("OK.";

should be

player.Say("OK.");

;)

EDIT: Oop, sorry, didn't see your edit.