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
main (8,9) : ERR :Expected identifer Fatal error
Tomato Cat Offline
Senior Member

Posts: 287
Threads: 2
Joined: Sep 2012
Reputation: 20
#2
RE: main (8,9) : ERR :Expected identifer Fatal error

(11-13-2012, 09:04 PM)Steveblockenstein Wrote: ////////////////////////////
// Run when entering map
void OnEnter()
{
AddUseItemCallback("", "key_dungeon", "level_celler_1", UsedKeyOnDoor, true);
}

MyFunc(string &in asItem, string &in asEntity)
{
void SetSwingDoorLocked("level_celler_1", false, true);
void PlaySoundAtEntity("","unlock_door", "level_celler_1", 0, true);
RemoveItem(key_dungeon);
}

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

}
-Steveblockenstein
There's your problem.

It should be..

Quote:MyFunc(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("level_celler_1", false, true);
PlaySoundAtEntity("","unlock_door", "level_celler_1", 0, true);
RemoveItem(key_dungeon);
}


And BTW there's a forum for this.

RAISE YOUR DONGERS ヽ༼ຈل͜ຈ༽ノ
(This post was last modified: 11-13-2012, 09:10 PM by Tomato Cat.)
11-13-2012, 09:09 PM
Find


Messages In This Thread
RE: main (8,9) : ERR :Expected identifer Fatal error - by Tomato Cat - 11-13-2012, 09:09 PM



Users browsing this thread: 4 Guest(s)