Scripting - Display Error - Need help.

Started by Iceshoot, Wed 17/02/2010 15:18:34

Previous topic - Next topic

Iceshoot

// 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?

Khris

Hehe, I had to paste the code into AGS to see the error.

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


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


Note the
"
instead of
''

Iceshoot

#2
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.

SMF spam blocked by CleanTalk