Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: ?DaltonSezHi! on Wed 29/06/2011 23:48:10

Title: Help with the Look Function in Global Scripting
Post by: ?DaltonSezHi! on Wed 29/06/2011 23:48:10
Every time I try to test the game, it says that end of input reached in middle of expr....
No, I dont know how to open the clipboard to see what the problem is, but it looks perfectly fine!

function iKey_Look()
{
Display(It's a Portal Gun you found on the floor of the Lab.");
}

Yeah, the Portal Gun is a key for now.  Does anyone know how to fix this? (Not the Portal Gun, being a key, but making it stop saying that there's an error.)
Title: Re: Help with the Look Function in Global Scripting
Post by: ddq on Wed 29/06/2011 23:50:03
Missing quotation mark before It's. You should also indent because it's good practice.
Title: Re: Help with the Look Function in Global Scripting
Post by: Khris on Wed 29/06/2011 23:50:32
Put the missing " (quotemark) before >It's<.
Title: Re: Help with the Look Function in Global Scripting
Post by: ?DaltonSezHi! on Wed 29/06/2011 23:52:46
Oh my god, I can't believe I didnt see that! xD

Well, thanks for helping.