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
ERR: Expected identifier
TheHunter Offline
Junior Member

Posts: 4
Threads: 2
Joined: Feb 2013
Reputation: 0
#1
ERR: Expected identifier

Hello, I need help with a Script: I want to put a script when you open a closet Insanity and sanity will drop the character. But what I want to rip out and says ERR: Expected identifier. Here I leave the script to see the error Huh
Thanks for your attention.Big Grin

////////////////////////////
// Run when entering map
void OnStart()
{
for(int i = 0;i < 2;i++) {GiveItemFromFile("tinderbox", "tinderbox.ent");}
AddUseItemCallback("", "llave_placar01", "Puerta_pieza_comienzo", "UsedKeyOnDoor", true);

}
void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("Puerta_pieza_comienzo", false, true);
PlaySoundAtEntity("", "unlock_door.snt", "Puerta_pieza_comienzo", 0, false);
RemoveItem("llaveplacar01");
}
AddEntityCollideCallback("cabinet_nice_1", "InsanityPlacar_1", "Cordurabaja", true, 0);

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

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

}
void Cordurabaja(string &in asParent, string &in asChild, int alState)
{
GiveSanityDamage(20, true);
}

Sorry for my bad english =(

HEEEELP!
(This post was last modified: 02-28-2013, 02:14 AM by TheHunter.)
02-28-2013, 01:52 AM
Find


Messages In This Thread
ERR: Expected identifier - by TheHunter - 02-28-2013, 01:52 AM
RE: ERR: Expected identifier - by Your Computer - 02-28-2013, 02:29 AM
RE: ERR: Expected identifier - by NaxEla - 02-28-2013, 02:33 AM
RE: ERR: Expected identifier - by TheHunter - 02-28-2013, 03:46 PM



Users browsing this thread: 1 Guest(s)