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
Weird error
OriginalUsername Offline
Posting Freak

Posts: 896
Threads: 42
Joined: Feb 2013
Reputation: 34
#1
Weird error

I'm trying to get a door open itself when a player walks trough an area:

Script:
void OnStart()
{
    AddEntityCollideCallback("Player", "Scriptarea_1", "dooropen", true, 0);
}

void dooropen(string &in asParent, string &in asChild, int alState)
{
    SetSwingDoorDisableAutoClose("mansion_1", true);
    SetSwingDoorClosed("mansion_1", false, false);
    
    for (int i = 0; i = 10; i++)
    {
    AddPropForce("mansion_1", 800, 0, 0, "world");
    }

}

I copied everything from here, so that shouldn't be the problem.
But everytime I try to reload or enter the map, this happens:

main (6, 1) : INFO : Compiling void dooropen(string&in, string&in, int)
main (11, 18) : ERR : Expression must be of boolean type

I've tried everything but I just can't see the error... I used these commands on other maps and they always worked. Could someone help me out?
02-21-2013, 03:38 PM
Find


Messages In This Thread
Weird error - by OriginalUsername - 02-21-2013, 03:38 PM
RE: Weird error - by FlawlessHappiness - 02-21-2013, 03:52 PM
RE: Weird error - by OriginalUsername - 02-21-2013, 04:39 PM
RE: Weird error - by FlawlessHappiness - 02-21-2013, 06:50 PM
RE: Weird error - by tonitoni1998 - 02-21-2013, 07:03 PM
RE: Weird error - by OriginalUsername - 02-21-2013, 09:12 PM
RE: Weird error - by Your Computer - 02-21-2013, 09:43 PM
RE: Weird error - by OriginalUsername - 02-22-2013, 12:34 AM



Users browsing this thread: 1 Guest(s)