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
Unexpected end of file!! ;(
Gamemakingdude Offline
Senior Member

Posts: 470
Threads: 82
Joined: Nov 2010
Reputation: 9
#2
RE: Unexpected end of file!! ;(

No wait. This is completely wrong! Give me 2 minutes to fix this up and please take the time to read through the code and see what was wrong!
PHP Code: (Select All)
void OnStart()
{
    
AddEntityCollideCallback("Player""scarearea1""func_slam"true1);
    
AddEntityCollideCallback("Player""monstertrigger1""MonsterFunction""true"1); 
    
AddUseItemCallback("""hollowneedle1""lockeddoor1""FUNCTION"true);


void func_slam(string &in asParentstring &in asChildint alState)
{
    
SetSwingDoorClosed("scaredoor1"truetrue);
    
PlaySoundAtEntity("""react_breath_slow.snt""Player"0false); 
    
PlaySoundAtEntity("""react_scare""Player"0false); PlaySoundAtEntity("""close_door.snt""Player"0false); 
    
GiveSanityDamage(5.0ftrue);

}
void FUNCTION(string &in asItemstring &in asEntity)
{
SetSwingDoorLocked("lockeddoor1"falsetrue);
PlaySoundAtEntity("""unlock_door""lockeddoor1"0false);
RemoveItem("hollowneedle1");
}


void MonsterFunction(string &in asParentstring &in asChildint alState);
{
    
SetEntityActive("servant_grunt_1"true); 
    
AddEnemyPatrolNode("servant_grunt_1""PathNodeArea_1"2"");
    
AddEnemyPatrolNode("servant_grunt_1""PathNodeArea_2"0"");
    
AddEnemyPatrolNode("servant_grunt_1""PathNodeArea_3"0"");
    
AddEnemyPatrolNode("servant_grunt_1""PathNodeArea_4"0"");
    
AddEnemyPatrolNode("servant_grunt_1""PathNodeArea_5"0"");
    
AddEnemyPatrolNode("servant_grunt_1""PathNodeArea_6"0"");
    
AddEnemyPatrolNode("servant_grunt_1""PathNodeArea_7"0"");
    
AddEnemyPatrolNode("servant_grunt_1""PathNodeArea_8"0"");
    
AddEnemyPatrolNode("servant_grunt_1""PathNodeArea_9"0"");
    
AddEnemyPatrolNode("servant_grunt_1""PathNodeArea_10"4"");


The problem was you had code in the wrong places, put backets where they werent supposed to go to and it wasnt indented correctly..

Rep if like me or im helpful or you love my stories!
Stephanos house
(This post was last modified: 10-06-2011, 07:56 AM by Gamemakingdude.)
10-06-2011, 07:52 AM
Find


Messages In This Thread
Unexpected end of file!! ;( - by cooleoj - 10-06-2011, 07:41 AM
RE: Unexpected end of file!! ;( - by Gamemakingdude - 10-06-2011, 07:52 AM
RE: Unexpected end of file!! ;( - by cooleoj - 10-06-2011, 07:59 AM
RE: Unexpected end of file!! ;( - by xtron - 10-06-2011, 08:09 AM
RE: Unexpected end of file!! ;( - by cooleoj - 10-06-2011, 08:13 AM
RE: Unexpected end of file!! ;( - by cooleoj - 10-06-2011, 08:36 AM
RE: Unexpected end of file!! ;( - by Apfel - 10-06-2011, 02:08 PM
RE: Unexpected end of file!! ;( - by cooleoj - 10-06-2011, 08:46 AM
RE: Unexpected end of file!! ;( - by schmupper - 10-06-2011, 02:07 PM
RE: Unexpected end of file!! ;( - by cooleoj - 10-06-2011, 03:03 PM
RE: Unexpected end of file!! ;( - by Obliviator27 - 10-06-2011, 04:11 PM
RE: Unexpected end of file!! ;( - by cooleoj - 10-06-2011, 06:13 PM
RE: Unexpected end of file!! ;( - by schmupper - 10-06-2011, 09:48 PM



Users browsing this thread: 1 Guest(s)