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
Scripting error help
DashFire61 Offline
Junior Member

Posts: 1
Threads: 2
Joined: Sep 2012
Reputation: 0
#1
Scripting error help

////////////////////////////
// Run first time starting map
void OnStart()
{
AddUseItemCallback("", "templekey", "startdoor_nextmap", "UsedKeyOnDoor", true);
}


Void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("startdoor_nextmap", false, true);
PlaySoundAtEntity("", "unlock_door", "startdoor_nextmap", 0, false);
RemoveItem("templekey");
}

////////////////////////////
// Run when entering map
void OnEnter()
{

}

////////////////////////////
// Run when leaving map
void OnLeave()
{

}



The error: FATAL ERROR: Could not load script file 'custom_stories/MLP/maps/start.hps
main(9,1): ERR :'Void is not a data type
main(9,1): ERR :'Void is not a data type
main(10,1): ERR : Not all paths return a value
09-27-2012, 05:51 AM
Find


Messages In This Thread
Scripting error help - by DashFire61 - 09-27-2012, 05:51 AM
RE: Scripting error help - by Mine Turtle - 09-27-2012, 07:48 AM
RE: Scripting error help - by The chaser - 09-27-2012, 11:41 AM



Users browsing this thread: 1 Guest(s)