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:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SOLVED] Script Problem
laser50 Offline
Member

Posts: 242
Threads: 22
Joined: Apr 2011
Reputation: 0
#1
[SOLVED] Script Problem

Hey guys, While scripting i ran into a error and i have NO idea what to do or how to fix it. So i decided to ask it here.

ERROR:
main (62, 25) :ERR :Expected data Type

My Code:
void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
    SetSwingDoorLocked("mansion_2", true, true);
    SetSwingDoorLocked("cabinet_nice_1", false, true);
    PlaySoundAtEntity("","unlock_door", "cabinet_nice_1" ,0.0f, false);
    RemoveItem("CabinetKey1");
    StartPlayerLookAt("Monster3", 2, 2, "");

      AddTimer("donelook", 2.5f, "TimerDoneLookAt");

    SetEntityActive("Monster3", true);
}

void TimerDoneLookAt(string &in asTimer)
{
  StopPlayerLookAt();
}


((THis is one part of where the error is.))
(This post was last modified: 04-16-2011, 12:13 AM by laser50.)
04-14-2011, 09:51 PM
Find


Messages In This Thread
[SOLVED] Script Problem - by laser50 - 04-14-2011, 09:51 PM
RE: Script Problem - by Pandemoneus - 04-14-2011, 10:49 PM
RE: Script Problem - by laser50 - 04-15-2011, 12:51 PM
RE: Script Problem - by laser50 - 04-15-2011, 03:23 PM
RE: Script Problem - by Dalroc - 04-15-2011, 03:30 PM
RE: Script Problem - by laser50 - 04-15-2011, 03:35 PM
RE: Script Problem - by MrBigzy - 04-15-2011, 04:15 PM
RE: Script Problem - by laser50 - 04-15-2011, 07:03 PM
RE: Script Problem - by MrBigzy - 04-15-2011, 11:12 PM
RE: Script Problem - by laser50 - 04-16-2011, 12:13 AM



Users browsing this thread: 1 Guest(s)