Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Unexpected token "{" error from this script.
dasde Offline
Junior Member

Posts: 30
Threads: 6
Joined: May 2011
Reputation: 0
#3
RE: Unexpected token "{" error from this script.

Okay, now I get this error: (see attachment)

Here is the full script:

//===========================================
     // Starter's Script File!
     //===========================================

     //===========================================
     // This runs when the map first starts
     void OnStart()
     {

     }





     //===========================================
     // This runs when the player enters the map
     void OnEnter()
     {
     }

     //===========================================
     // This runs when the player leaves the map
     void OnLeave()
     {
     }
    
    
     //===========================================
     // Areas




////////////////////////////////////////
//UNLOCK START SWINGDOOR

void AddLocalVarInt(string& UnlockDoor, int alVal)
{

        if(GetLocalVarInt("UnlockDoor")==8)
        {
           SetLevelSwingDoorLocked(mansion_1, false);
          
        }
}    
void OnLeverStateChange(string &in Lever1, int alState)
{

    AddDebugMessage(Lever1 + "'s current state: " + alState, false);

    if (alState == -1)
    {
     AddLocalVarInt("UnlockDoor", 1);

    }
}


void OnLeverStateChange(string &in Lever7, int alState)
{
    AddDebugMessage(Lever7 + "'s current state: " + alState, false);

    if (alState == -1)
    {
     AddLocalVarInt("UnlockDoor", 7);
    }
}



Attached Files
.png   error.PNG (Size: 34.47 KB / Downloads: 84)
05-27-2011, 08:14 AM
Find


Messages In This Thread
RE: Unexpected token "{" error from this script. - by dasde - 05-27-2011, 08:14 AM



Users browsing this thread: 1 Guest(s)