The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
You So Russo Offline
Junior Member

Posts: 4
Threads: 1
Joined: Jan 2015
Reputation: 0
#1
Unexpected End in my code :c

My code has got unexpected end but i dont know where or how since I can't see anything that doesn't not work.

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

void UseKeyOnDoor("
Key1", "Door1")
{
    SetSwingDoorLocked(asEntity, false, true);
    PlaySoundAtEntity("", "
door_unlock.snt", asEntity, 0, false);
    RemoveItem(asItem)
}


void PlayRecord(string &in asEntity, int alState)
{
    if(alState == 1)
    {
        PlaySoundAtEntity("", "
grapevine.snt", asEntity, 0, true);
    }


}
void Dialogue(string &in asParent, string &in asChild, int alState)
{
    SetPlayerActive(false);
    AddEffectVoice("
agony1", "", "Dialogue", "", false, asParent, 2, 20);
    StartPlayerLookAt("
lookat1", 2, 2, "");
    AddTimer("
T1", 8.5f, "Lookat");
    GiveSanityDamage(5.0f, true);
}

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

01-20-2015, 07:00 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)