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
Err (60, 26) Expected '('
Matt201496 Offline
Junior Member

Posts: 11
Threads: 4
Joined: Jun 2012
Reputation: 0
#1
Err (60, 26) Expected '('

I think it's this part of the script that has an error, but i'm not sure what to do.

void DeactivateMonster (string &in asTimer)
{
SetEntityActive("DungeonGrunt", false);

AddTimer("",10,""); \\ Timer to change map after the grunt goes away

{
void ChangeMap(string& Test2.map, string& PlayerStartArea_2, string& , string& )

};

}

Heres the whole script if you need it:

////////////////////////////
// Run when the map starts
void OnStart()
{
AddUseItemCallback("", "DungeonKey1", "DungeonDoor", "UnlockDungeon", true);



};



////////////////////////////
// Run when entering map
void OnEnter()
{

}

////////////////////////////
// Run when leaving map
void OnLeave()
{

}

void UnlockDungeon(string &in item, string &in door)
{
SetSwingDoorLocked(door, false, true);
PlaySoundAtEntity("", "unlock_door", door, 0, false);
RemoveItem(item);
}

void ActivateMonster (string &in item)
{

{

SetEntityActive("DungeonGrunt", true);
AddEnemyPatrolNode("DungeonGrunt", "PathNodeArea_1", 0, "idle");
AddEnemyPatrolNode("DungeonGrunt", "PathNodeArea_2", 0, "idle");

AddTimer("",30,"DeactivateMonster")

;
}





}
void DeactivateMonster (string &in asTimer)
{
SetEntityActive("DungeonGrunt", false);

AddTimer("",10,"");

{
void ChangeMap(string& Test2.map, string& PlayerStartArea_2, string& , string& )

};

}

(This post was last modified: 06-17-2012, 11:44 PM by Matt201496.)
06-17-2012, 10:25 PM
Find


Messages In This Thread
Err (60, 26) Expected '(' - by Matt201496 - 06-17-2012, 10:25 PM
RE: Err (60, 26) Expected '(' - by Adny - 06-17-2012, 10:46 PM
RE: Err (60, 26) Expected '(' - by DaAinGame - 06-17-2012, 10:47 PM
RE: Err (60, 26) Expected '(' - by Matt201496 - 06-17-2012, 11:43 PM
RE: Err (60, 26) Expected '(' - by Adny - 06-18-2012, 12:40 AM



Users browsing this thread: 2 Guest(s)