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
Fatal Error :/
Rowzter Offline
Junior Member

Posts: 44
Threads: 12
Joined: Oct 2012
Reputation: 3
#1
Fatal Error :/

Alraight, i got this fatal error:

FATAL ERROR: Could not load script file
'custom_stories/Venomdusk/custom_Stories/Venomdusk/maps/Dunge
on.hps'!
main (10,1) : ERR : Expected ',' or ';'


I guess it must have something to do with this:
',' or ';'

But i cant find something like that in my script, Here it is:
void OnStart()
{
AddEntityCollideCallback("Player", "PlayerCollide", "MonsterFunction", true, 1);
AddEntityCollideCallback("servant_brute_2", "Brutedespawn_1", "MonsterDespawnFunc", true, 1);
GiveItemFromFile("lantern", "lantern.ent");
AddEntityCollideCallback("Player", "ScaryCollide", "func_slam", true, 1);
}
void MonsterFunction(string &in asParent, string &in asChild, int alState)

void func_slam(string &in asParent, string &in asChild, int alState)

{
SetEntityActive("servant_brute_2", true);

AddEnemyPatrolNode("servant_brute_2", "PathNodeArea_4", 0, "");


SetSwingDoorClosed("prison_section_5", true, true);

PlaySoundAtEntity("", "react_breath_slow.snt", "Player", 0, false);

PlaySoundAtEntity("", "react_scare", "Player", 0, false);

PlaySoundAtEntity("", "close_door.snt", "Player", 0, false);

GiveSanityDamage(5.0f, true);




}

void MonsterDespawnFunc(string &in asParent, string &in asChild, int alState)
{
FadeEnemyToSmoke("servant_brute_2", true);
}




If someone finds an error and know how to fix it would mean alot!
(This post was last modified: 11-11-2012, 02:24 PM by Rowzter.)
11-11-2012, 12:59 PM
Find


Messages In This Thread
Fatal Error :/ - by Rowzter - 11-11-2012, 12:59 PM
RE: Fatal Error :/ - by FlawlessHappiness - 11-11-2012, 01:02 PM
RE: Fatal Error :/ - by Rowzter - 11-11-2012, 01:05 PM
RE: Fatal Error :/ - by Adny - 11-11-2012, 01:08 PM
RE: Fatal Error :/ - by Rowzter - 11-11-2012, 01:16 PM



Users browsing this thread: 1 Guest(s)