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
vansd Offline
Junior Member

Posts: 8
Threads: 4
Joined: Apr 2011
Reputation: 0
#1
Fatal Error

Look at my code
void OnStart()
{
// use "ScriptArea_1" on "servunt_grunt_1" enemy => calls "MonsterFunc1"
AddUseItemCallback("", "key_tomb_2", "prison_2", "KeyOnDoor", true);

// use "key_tomb_3" on "castle_4" door => calls "KeyOnDoor"
AddUseItemCallback("", "key_tomb_3", "castle_4", "KeyOnDoor", true);
}
void MonsterFunc1(string &in asParent, string &in asChild , int alState)
{
SetEntityActive("servant_grunt_1" , true);

void KeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("castle_4", false, true);
RemoveItem(asItem);
PlaySoundAtEntity("", "unlock_door.snt", "castle_4", 0.0f, true);
}
I have fatal error. Unexpected end of the file. I can't understand what i did wrong. Help!
04-17-2011, 03:59 PM
Find


Messages In This Thread
Fatal Error - by vansd - 04-17-2011, 03:59 PM
RE: Fatal Error - by MrBigzy - 04-17-2011, 04:23 PM
RE: Fatal Error - by vansd - 04-17-2011, 04:31 PM
RE: Fatal Error - by Linus Ågren - 04-17-2011, 08:01 PM



Users browsing this thread: 1 Guest(s)