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
Script Help 1 error which I can't solve/find?!
Radical Batz Offline
Posting Freak

Posts: 953
Threads: 145
Joined: Dec 2013
Reputation: 25
#10
RE: 1 error which I can't solve/find?!

(01-24-2014, 10:42 PM)Romulator Wrote:
(01-24-2014, 10:35 PM)FlawlessHair Wrote: void Puzzle (string &in asEntity, int LeverState
{
if(GetLeverState("Lever1") == -1
&& GetLeverState("Lever2" ) == 1)
&& GetLeverState("Lever3" ) == -1
&& GetLeverState("Lever4" ) == -1
}

Also missing a ) after the void's syntax.

I'm getting another error I'm not sure why! the code looks fine to me now but the game doesn't agree

void Puzzle (string &in asEntity, int LeverState)
{
    if(GetLeverState("Lever1") == -1
    && GetLeverState("Lever2" ) == 1)
    && GetLeverState("Lever3" ) == -1
    && GetLeverState("Lever4" ) == -1
}

{      void UnlockDoor(string &in asEntity, int LeverState)
    SetSwingDoorLocked("Door", false, true);
    PlaySoundAtEntity("", "door_safety_open.ogg", "Door", 0, false);

}
(This post was last modified: 01-24-2014, 11:16 PM by Radical Batz.)
01-24-2014, 11:15 PM
Find


Messages In This Thread
RE: 1 error which I can't solve/find?! - by Radical Batz - 01-24-2014, 11:15 PM



Users browsing this thread: 4 Guest(s)