04-29-2011, 12:48 PM
When I start my custom story an error message comes up:
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.
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.