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 Unexpected end of file error problem :(
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#11
RE: Unexpected end of file error problem :(

*facepalm* how did I not see this before >.>

Isn't it because he is missing the && in the second two?

Try the chasers one above first, then try this:
PHP Code: (Select All)
void UnlockDoor(string &in asEntityint LeverState)
{
if(
GetLeverState("Lever1") == -1)
&& (
GetLeverState("Lever2") == -1)
&& (
GetLeverState("Lever3") == 1)
&& (
GetLeverState("Lever4") == -1)

{
SetSwingDoorLocked("Door"falsetrue);
PlaySoundAtEntity("""unlock_door.snt""Door"0false);
}


And if that doesn't work, try this:
PHP Code: (Select All)
void UnlockDoor(string &in asEntityint LeverState)
{
if(
GetLeverState("Lever1") == -1
&& GetLeverState("Lever2") == -1
&& GetLeverState("Lever3") == 1
&& GetLeverState("Lever4") == -1)

{
SetSwingDoorLocked("Door"falsetrue);
PlaySoundAtEntity("""unlock_door.snt""Door"0false);
}


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


Messages In This Thread
RE: Unexpected end of file error problem :( - by Romulator - 01-27-2014, 11:28 PM



Users browsing this thread: 1 Guest(s)