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 expected ")" or "," help please
Chunckycat12 Offline
Junior Member

Posts: 7
Threads: 2
Joined: Apr 2012
Reputation: 0
#1
expected ")" or "," help please

hi everyone i only started to mod about 3 days ago so bear with me Smile but basically my problem is that whenever i load my amnesia custom map a message appears saying 19,57 expected ")" or "," i have beem trying to do it for hours Angry if anyone sees anything let me know Big Grin


void OnStart()
{
AddUseItemCallback("", "key_1", "door_1", "UsedKeyOnDoor", true);
AddEntityCollideCallback("Player", "ScriptArea_1", "CollideScriptArea1", true, 1);
AddEntityCollideCallback("Player", "Music", "StartMusic", true, 1);
}
void UsedKeyOnDoor(string &in item, string &in door)
{
SetSwingDoorLocked("door_1", false, true);
PlaySoundAtEntity("", "unlock_door", "door_1", 0, false);
RemoveItem("key_1");
}

void CollideScriptArea1(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorClosed("castle_1", true, true);
}

void StartMusic(string &in asParent, string &in asChild int alState)-this is 19,57 btw
{
PlayMusic("01_amb_darkness.ogg", true, 0.8, 2, 1, true);
}
(This post was last modified: 04-16-2012, 10:04 PM by Chunckycat12.)
04-16-2012, 08:17 PM
Find


Messages In This Thread
expected ")" or "," help please - by Chunckycat12 - 04-16-2012, 08:17 PM
RE: expected ")" or "," help please - by DRedshot - 04-17-2012, 12:42 AM
RE: expected ")" or "," help please - by flamez3 - 04-17-2012, 11:38 AM
RE: expected ")" or "," help please - by flamez3 - 04-17-2012, 12:48 PM



Users browsing this thread: 1 Guest(s)