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
a function with same name and function alrdy exist?
Hartmann Offline
Member

Posts: 52
Threads: 18
Joined: Jun 2012
Reputation: 0
#1
a function with same name and function alrdy exist?

Im getting an error saying that a function with the same name and functions alrd exist. cna you help. here is my script

void OnStart()
{
AddEntityCollideCallback("Player", "PlayerCollide", "MonsterFunction", true, 1);
AddUseItemCallback("", "key_4", "castle_no_grav_1", "KeyOnDoor", true);
AddUseItemCallback("", "bone_saw_1", "wooden_boards_block_1", "DestroyParticleSystem", true);
AddTimer("StopLook", 4, "LookAtSaw");
}

void DestroyParticleSystem(string& asName)
{
PlaySoundAtEntity("", "saw", "wooden_boards_block_1", 0.0f, true);
RemoveItem("bone_saw_1");
}


void MonsterFunction(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("servant_grunt_1", true);
}

void KeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("castle_no_grav_1", false, true);
PlaySoundAtEntity("", "unlock_door", "castle_no_grav_1", 0.0f, true);
RemoveItem("key_4");
}

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

}

void LookAtSaw(string &in asTimer)
{
StopPlayerLookAt();
}
06-23-2012, 04:11 PM
Find


Messages In This Thread
a function with same name and function alrdy exist? - by Hartmann - 06-23-2012, 04:11 PM



Users browsing this thread: 1 Guest(s)