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
2 Script error
Hellday Offline
Junior Member

Posts: 7
Threads: 2
Joined: Jul 2011
Reputation: 0
#1
2 Script error

Hello, first sorry for my bad english, i'm French.
I've a problem with my script, one is for a locked door and key, the other spawn a monster. They work perfectly but when I put them both in my .hps i've a fatal error.

void OnStart()
{

SetEntityPlayerInteractCallback("lantern_1", "Spawn_Monster", true);

}

void Spawn_Monster(string &in entity)
{

SetEntityActive("servant_grunt_1", true);
}

void UseKey(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked(asEntity, false, true);

RemoveItem(asItem);
}


void OnStart()
{

AddUseItemCallback("useexit", "key_1", "coffre", "UseKey",true);

Thanks for reply.
07-01-2011, 11:46 AM
Find


Messages In This Thread
2 Script error - by Hellday - 07-01-2011, 11:46 AM
RE: 2 Script error - by TFEF - 07-01-2011, 11:57 AM
RE: 2 Script error - by Hellday - 07-01-2011, 12:04 PM
RE: 2 Script error - by HumiliatioN - 07-01-2011, 03:57 PM
RE: 2 Script error - by TFEF - 07-01-2011, 12:49 PM
RE: 2 Script error - by Hellday - 07-01-2011, 05:35 PM
RE: 2 Script error - by HumiliatioN - 07-01-2011, 10:38 PM



Users browsing this thread: 2 Guest(s)