ingedoom
Member
Posts: 120
Threads: 12
Joined: Feb 2012
Reputation:
0
|
RE: 1 error which I can't solve/find?!
Could this be it? Seems like you misplaced your parenthesis.
if(GetLeverState("Lever1") == -1
&& GetLeverState("Lever2" ) == 1)
&& GetLeverState("Lever3" ) == -1
&& GetLeverState("Lever4" ) == -1
edit: also the puzzle function does not seem to have a closing bracket.
edit:
void Puzzle (string &in asEntity, int LeverState)
{
if(GetLeverState("Lever1") == -1
&& GetLeverState("Lever2" ) == 1
&& GetLeverState("Lever3" ) == -1
&& GetLeverState("Lever4" ) == -1)
{
UnlockDoor(string &in asEntity, int LeverState);
}
else
{ SetSwingDoorLocked("Door", false, true);
PlaySoundAtEntity("", "door_safety_open.ogg", "Door", 0, false);
}
}
I think that should do it.
(This post was last modified: 01-24-2014, 08:49 PM by ingedoom.)
|
|
01-24-2014, 08:39 PM |
|