Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Iceshoot on Wed 17/02/2010 15:18:34

Title: Scripting - Display Error - Need help.
Post by: Iceshoot on Wed 17/02/2010 15:18:34
// room script file

function hOcean_Look()
{
 Display(''I'm walking on.. an ocean?!'');
}

The above is EXACTLY how i got it, and what the tutorial learned me.

However i get this error when i try to Save or Run:

room1.asc(5): Error (line 5): incorrectly terminated character constant

The knowledge base here gives me Errors 404's, and no1 else asked this before when i searched the forums.

Any suggestions?
Title: Re: Scripting - Display Error - Need help.
Post by: Khris on Wed 17/02/2010 15:42:15
Hehe, I had to paste the code into AGS to see the error.

This is yours:
  Display(''I'm walking on.. an ocean?!'');

This will work:
  Display("I'm walking on.. an ocean?!");

Note the
"
instead of
''
Title: Re: Scripting - Display Error - Need help.
Post by: Iceshoot on Wed 17/02/2010 15:46:19
And what's that on your keyboard?

-Edit-

Ah ok!! i got it ;D!!

Thanks dude!!

I'll leave this topic open for if anybody else encounters this problem.

Closed for discussion tho.