Nested Functions Not Supported (SOLVED)

Started by T-Pr, Wed 20/01/2010 21:35:06

Previous topic - Next topic

T-Pr

Hey guys,i was doing my game and i did my animations and i finished my game.But before these,i changed gui color,texts.Later i opened my game and i saw a error.I said,maybe it is because of gui . And i imported new gui from a new game.I did gui normal but the problem did not solve please help me. Maybe it's simple error,maybe i forget somewhere please help me ;



It's saying ''closing brace'' but i can't do anything.

Dualnames

That's the most common AGS error of all time. You have forgotten a }.
Put a { on line 210.

It would be wise if we could see the whole code of global script, to tell you exactly.
It's also wise to know that when the AGS engine sees this { it expects the number of these { to equal these }.
Worked on Strangeland, Primordia, Hob's Barrow, The Cat Lady, Mage's Initiation, Until I Have You, Downfall, Hunie Pop, and every game in the Wadjet Eye Games catalogue (porting)

T-Pr

#2
Ok ok,thanks for you,i solved the problem.Thanks :).

Atelier

The new brace is back to front :D. Try this (and delete the { above the top line):

Code: ags

function on_mouse_click(MouseButton button)
{
   //Codes go here, inside the brackets.
   //Etc.
}


The {s go in pairs. If you have one opening '{', it must be matched at the end of the function with a '}'. It will highlight gold it you've done it right.

Edit @ above: Great.

Khris

The error was the } on line 216, I take it.

SMF spam blocked by CleanTalk