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 End in my code :c
Daemian Offline
Posting Freak

Posts: 1,129
Threads: 42
Joined: Dec 2012
Reputation: 49
#7
RE: Unexpected End in my code :c

Quote:Unexpected end of file
Sounds like a missing brace }
Post your script?
edit: Oh it's up there. ok.

I don't know. It seems correct for me too. Can you try this one below?

PHP Code: (Select All)
void OnStart()
{
    
AddUseItemCallback("""Key1""Door1""UseKeyOnDoor"true);
    
AddEntityCollideCallback("Player""ZoneCollide""Dialogue"true1);    
}

void UseKeyOnDoor(string &in asItemstring &in asEntity)
{
    
SetSwingDoorLocked(asEntityfalsetrue);
    
PlaySoundAtEntity("""door_unlock.snt"asEntity0false);
    
RemoveItem(asItem);
}


void PlayRecord(string &in asEntityint alState)
{
    if(
alState == 1)
    {
        
PlaySoundAtEntity("""grapevine.snt"asEntity0true);
    }


}
void Dialogue(string &in asParentstring &in asChildint alState)
{
    
SetPlayerActive(false);
    
AddEffectVoice("agony1""""Dialogue"""falseasParent220);
    
StartPlayerLookAt("lookat1"22"");
    
AddTimer("T1"8.5f"Lookat");
    
GiveSanityDamage(5.0ftrue);
}

void Lookat(string &in asTimer)
{
    
StopPlayerLookAt();
    
StartPlayerLookAt("lookat2"22"");
    
AddTimer("T2"14.0f"Lookat2");
}
void Lookat2(string &in asTimer)
{
    
StopPlayerLookAt();
    
SetPlayerActive(true);


(This post was last modified: 01-20-2015, 11:52 PM by Daemian.)
01-20-2015, 11:35 PM
Find


Messages In This Thread
Unexpected End in my code :c - by You So Russo - 01-20-2015, 07:00 PM
RE: Unexpected End in my code :c - by Mudbill - 01-20-2015, 07:21 PM
RE: Unexpected End in my code :c - by Mudbill - 01-20-2015, 09:44 PM
RE: Unexpected End in my code :c - by Mudbill - 01-20-2015, 10:17 PM
RE: Unexpected End in my code :c - by Daemian - 01-20-2015, 11:35 PM



Users browsing this thread: 1 Guest(s)