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
Expcected Error help!
FoodOnCrack Offline
Junior Member

Posts: 5
Threads: 3
Joined: Feb 2014
Reputation: 0
#1
Tongue  Expcected Error help!

Hi there, I have made my first custom story, the map is working fine. I have a line of commands for a key and door which worked at first, now i have added a jumpscare which i have seen in a tutorial on youtube. It crashes immediatly and says: main 14,19 EXPECTED IDENTIFIER. I can also give a screenshot of the code in notepad ++, private message me.

My codes are:
PHP Code: (Select All)
void OnStart()
{
    
AddEntityCollideCallback("Player""Teleport_Script_1""jumpscare"true1);
}

void jumpscare(string &in asParentstring &in asChildint alStates)

{
    
SetEntityActive("corpse_male_3"true);
    
AddPropForce("corpse_male_3"00100"world");
}


AddUseItemCallback(" ""key_tower_1""castle_1""KeyOnDoor"true); 

void KeyOnDoor(string &in asItemstring &in asEntity)

{
SetSwingDoorLocked("castle_1"falsetrue);
PlaySoundAtEntity("""unlock_door""castle_1"0false);
RemoveItem("key_tower_1");


void OnStart()
{
AddEntityCollideCallback("Player""Teleport_Script_1""jumpscare"true1);
}

void jumpscare(string &in asParentstring &in asChildint alStates)

{
    
SetEntityActive("corpse_male_3"true);
    
AddPropForce("corpse_male_3"00100"world");


Is there anyone who understands the scripting better than me and can help me out? Thank you!!!
(This post was last modified: 02-14-2014, 01:08 AM by FoodOnCrack.)
02-14-2014, 01:05 AM
Find


Messages In This Thread
Expcected Error help! - by FoodOnCrack - 02-14-2014, 01:05 AM
RE: Expcected Error help! - by Mudbill - 02-14-2014, 01:14 AM
RE: Expcected Error help! - by FoodOnCrack - 02-23-2014, 07:45 PM
RE: Expcected Error help! - by Daemian - 02-24-2014, 12:24 AM
RE: Expcected Error help! - by Romulator - 02-24-2014, 08:50 AM
RE: Expcected Error help! - by Mudbill - 02-24-2014, 08:58 AM
RE: Expcected Error help! - by davide32 - 02-24-2014, 02:02 PM



Users browsing this thread: 2 Guest(s)