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?!
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#11
RE: 1 error which I can't solve/find?!

(01-24-2014, 11:15 PM)Badcat5550 Wrote:
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);

}

PHP Code: (Select All)
void Puzzle (string &in asEntityint LeverState)
{
    if(
GetLeverState("Lever1") == -1
    
&& GetLeverState("Lever2" ) == 1)
    && 
GetLeverState("Lever3" ) == -1
    
&& GetLeverState("Lever4" ) == -1
}

void UnlockDoor(string &in asEntityint LeverState)
{
    
SetSwingDoorLocked("Door"falsetrue);
    
PlaySoundAtEntity("""door_safety_open.ogg""Door"0false);

Your parenthesis ( { ) in the second void was wrong. Also, I know there is something wrong with your puzzle, but I can't help there because I don't work with if statements. There is at least one bracket missing/too many.

Discord: Romulator#0001
[Image: 3f6f01a904.png]
01-24-2014, 11:23 PM
Find


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



Users browsing this thread: 1 Guest(s)