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
[SOLVED] What is wrong with this script?
NylePudding Offline
Member

Posts: 77
Threads: 23
Joined: Apr 2011
Reputation: 0
#1
[SOLVED] What is wrong with this script?

When I start my custom story an error message comes up:

[Image: auxvrk.png]

Here is my script:


void OnStart()
{
AddTimer("tut01", 5, "Timer01");
AddTimer("tut02", 10, "Timer02");

void SetSwingDoorLocked(string& mansion_2, bool abLocked,

bool abEffects);


if(ScriptDebugOn())
{
GiveItemFromFile("lantern", "lantern.ent");

for(int i=0;i<10;i++) GiveItemFromFile("tinderbox_"+i,

"tinderbox.ent");
}
}



void Timer01(string &in asTimer)
{
SetMessage("Example", "Entry1", 0);

}

void Timer02(string &in asTimer)
{
SetEntityActive("servant_grunt_1" , true);
ShowEnemyPlayerPosition(string& servant_grunt_1);
}


void OnEnter()
{

}

void OnLeave()
{

}


So where do I have to place the brackets? Or is my code slightly wrong?

Thanks in advance. Big Grin
(This post was last modified: 04-29-2011, 02:53 PM by NylePudding.)
04-29-2011, 12:48 PM
Find


Messages In This Thread
[SOLVED] What is wrong with this script? - by NylePudding - 04-29-2011, 12:48 PM
RE: What wrong with this script? - by laser50 - 04-29-2011, 12:57 PM



Users browsing this thread: 1 Guest(s)