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
What is this error and where is it? [SOLVED]
Radical Batz Offline
Posting Freak

Posts: 953
Threads: 145
Joined: Dec 2013
Reputation: 25
#1
What is this error and where is it? [SOLVED]

I did the code right and it gets me an error! just great. well here is the code that i'm using for my map

void OnStart()
{
    AddUseItemCallback("", "Crowbar", "CrowbarDoor", "UseCrowbarOnDoor", true);
    AddEntityCollideCallback("Joint", "AreaBreak", "BreakDoor", true, 1);    
}

void UseCrowbarOnDoor(string &in asItem, string &in asEntity)
{
    RemoveItem(asItem);
    PlaySoundAtEntity("", "player_crouch.snt", "Player", 0.05, false);
    AddTimer(asEntity, 0.2, "TimerPlaceCrowbar");

}

void TimerPlaceCrowbar(string &in asTimer)
{
    SetEntityActive("Joint", true);
    PlaySoundAtEntity("", "puzzle_place_jar.snt", "asTimer", 0, false);
}

void BreakDoor("", string &in asChild, int alState)
{
    SetEntityActive("Joint", false);
    SetEntityActive("Broken", true);

    SetSwingDoorLocked("CrowbarDoor", false, false);
    SetSwingDoorClosed("CrowbarDoor", false, false);
    SetSwingDoorDisableAutoClose("CrowbarDoor", true);

    AddPropImpulse("CrowbarDoor", 0, 0, -3, "world");

    CreateParticleSystemAtEntity("", "ps_hit_wood.ps", "AreaEffect", false);
    PlaySoundAtEntity("", "break_wood_metal", "AreaEffect", 0, false);

    GiveSanityBoostSmall();

    PlayMusic("02_puzzle.ogg", false, 0.7, 0.1, 1, false);

    AddTimer("",0.1,"TimerPushDoor");
}

void TimerPushDoor(String &in asTimer)
{
    AddPropImpulse("CrowbarDoor", 4, 2, -1, "world");
    AddTimer("", 1.1, "TimerDoorCanClose")
}

void TimerDoorCanClose(String &in asTimer)
{
    SetSwingDoorDisableAutoClose("CrowbarDoor", false);        
}

ok well this is the error that it gets me when I load the map

FATAL ERROR: Could not load script file 'custom_stories/Lifeless_The Abandon/maps/Mansion.hps'!
main (21, 16) : ERR  : Expected data type
what does that even mean?

can you guys help me and tell me If you can see where the error is pls, I really do understand some errors but not this one, what does "expected data type" even mean? pls help
(This post was last modified: 02-23-2014, 07:03 PM by Radical Batz.)
02-23-2014, 05:59 PM
Find


Messages In This Thread
What is this error and where is it? [SOLVED] - by Radical Batz - 02-23-2014, 05:59 PM



Users browsing this thread: 1 Guest(s)