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
Script Help Unexpected end of file Error :(
samixxa Offline
Junior Member

Posts: 12
Threads: 3
Joined: Nov 2011
Reputation: 0
#1
Unexpected end of file Error :(

Im getting the "Unexpected end of file" Error, and i really cant spot the mistake? Please help Smile

void OnStart ()
{
    AddUseItemCallback("", "key_1", "door_1", "UsedKeyOnDoor", true);
    AddUseItemCallback("", "monsterkey", "monsterdoor", "UsedKeyOnDoor__2", true);
}

void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
    SetSwingDoorLocked("door_1", false, true);
    PlaySoundAtEntity("", "unlock_door", "door_1", 0, false);
    RemoveItem("key_1");
}

void UsedKeyOnDoor_2(string &in asItem, string &in asEntity)
{
    SetSwingDoorLocked("monsterdoor, false, true);
    PlaySoundAtEntity("", "unlock_door", "monsterdoor", 0, false);
    RemoveItem("monsterkey");
}
01-25-2012, 12:31 PM
Find


Messages In This Thread
Unexpected end of file Error :( - by samixxa - 01-25-2012, 12:31 PM
RE: Unexpected end of file Error :( - by samixxa - 01-25-2012, 12:38 PM
RE: Unexpected end of file Error :( - by samixxa - 01-25-2012, 12:42 PM



Users browsing this thread: 3 Guest(s)