Frictional Games Forum (read-only)
Unexpected end of file - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: Unexpected end of file (/thread-16486.html)



Unexpected end of file - LulleBulle - 06-25-2012

I'm having a slight problem. My script code in my .hps file is working perfect and the map works but when I add the following:

on void OnStart() i add AddEntityCollideCallback("CloseDoor", "Player", DoorClose", true, 1);

and then I add

void DoorClose(correct syntax)
{
SetSwingDoorClosed("mansion_2", true, false);
}


and for some reason I get unexpected end of line, why is this?


RE: Unexpected end of file - MaZiCUT - 06-25-2012

It's soppoused to be

void OnStart()
{
AddEntityCollideCallback("Player", "CloseDoor", "DoorClose", true, 1);
}


void DoorClose(correct syntax)
{
SetSwingDoorClosed("mansion_2", true, false);
}


RE: Unexpected end of file - Cruzore - 06-25-2012

AddEntityCollideCallback("CloseDoor", "Player", DoorClose", true, 1);
missing " at the start of the called function.