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 [SOLVED]
Karai16 Offline
Member

Posts: 164
Threads: 24
Joined: Apr 2011
Reputation: 0
#1
Fatal Error [SOLVED]

There's something wrong with my code, for I get this error message:
[Image: Error.png]
This is my code, can somebody see what's wrong with it?
void OnStart()
{
    AddUseItemCallback("", "RoomKey", "RoomDoor", "UsedKeyOnDoor", true);
    SetPlayerInteractCallback("RoomKey", "Activatebob", true);
}

void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
    SetSwingDoorLocked("RoomDoor", false, true);
    PlaySoundAtEntity("", "unlock_door", "RoomDoor", 0, false);
    RemoveItem("RoomKey");
}

void Activatebob(string &in asEntity)
{
setEntityActive("Bob", true);
}
and yes, I'm sure I named my servant Bob.

Custom stories:
Her Games (100% Complete)
Her Games, All Bugs Fixed (100% Complete)
(This post was last modified: 05-01-2011, 12:59 PM by Karai16.)
05-01-2011, 12:24 PM
Find


Messages In This Thread
Fatal Error [SOLVED] - by Karai16 - 05-01-2011, 12:24 PM
RE: Fatal Error - by Linus Ågren - 05-01-2011, 12:34 PM
RE: Fatal Error - by Dalroc - 05-01-2011, 12:49 PM
RE: Fatal Error - by Karai16 - 05-01-2011, 12:57 PM



Users browsing this thread: 1 Guest(s)