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
Another question that's probably syntax related >_<
Austums Offline
Member

Posts: 60
Threads: 11
Joined: Mar 2011
Reputation: 0
#1
Another question that's probably syntax related >_<

Okay, so the only thing I'm not so certain on is the SetLevelDoorLockedSound

This is my very first script made from scratch, so I apologize for the somewhat noobish post xP

void OnStart()
{
   AddTimer("CreepyMusic", 0, "CreepyMusic");
   AddUseItemCallback("CellarDoorKey1Func", "CellarDoorKey1", "CellarDoor1", "CellarDoorKey1Func", true);
}
void CreepyMusic(string &in asTimer)
{
   PlayMusic("06_amb.ogg", true, 7, 3, 0, true);
}
void SetLevelDoorLockedSound(CellarDoor1, "door_level_wood_locked.ogg");
{
}
void CellarDoorKey1Func(string &in asItem, string &in asEntity)
{
    SetLevelDoorLocked("CellarDoor1", false);
    RemoveItem("CellarDoorKey1");
    PlaySoundAtEntity("unlocking", "unlock_door.snt", "Player", 0, true);
}

And I just got a really long error stating that it expected something at (1,2) I believe
04-01-2011, 04:16 PM
Find


Messages In This Thread
Another question that's probably syntax related >_< - by Austums - 04-01-2011, 04:16 PM



Users browsing this thread: 1 Guest(s)