Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - v3nge

#1
Hello, I just joined the forums becuase I came across a problem that I need help from a more experienced user with. I am getting the error "room4.asc(-10): Runtime error: Function still open, missing }" in this script:
//room script

function oObject1_AnyClick()
{
 int key;
 if (GetGlobalInt(key) == 2) {
 Display("Ypo have already chosen a key.");
}
else {
 SetGlobalInt (key,  1);
 oObject1.SetPosition(900, 900);
}

function oObject0_AnyClick;
{
 if (GetGlobalInt(key) == 1) {
 Display("You have already chosen a key.");
}
else {
  SetGlobalInt (key,  2);
  oObject0.SetPosition(900, 900);
}

function hHotspot1_WalkOn;
{
Penguin.StopMoving();
Penguin.ChangeRoomAutoPosition(3);
 Penguin.x = 145;
 Penguin.y = 145;
 Penguin.PlaceOnWalkableArea();
 Penguin.StopMoving();
}

Thanks in advance.  :)
SMF spam blocked by CleanTalk