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 fucntion with the same name and the parameters already exist?
kartanonperuna Offline
Posting Freak

Posts: 755
Threads: 44
Joined: Oct 2011
Reputation: 8
#1
A fucntion with the same name and the parameters already exist?

Uh what?
(This post was last modified: 01-07-2012, 03:57 AM by kartanonperuna.)
01-07-2012, 02:35 AM
Website Find
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#2
RE: A fucntion with the same name and the parameters already exist?

(01-07-2012, 02:35 AM)kartanonperuna Wrote: Uh what?
It means you have two objects in the map with the same name. As with a function
01-07-2012, 02:37 AM
Find
kartanonperuna Offline
Posting Freak

Posts: 755
Threads: 44
Joined: Oct 2011
Reputation: 8
#3
RE: A fucntion with the same name and the parameters already exist?

Hmmm what thell?But it worked few minutes ago?

01-07-2012, 02:38 AM
Website Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#4
RE: A fucntion with the same name and the parameters already exist?

It has to do with your script only. Look at your script and find the two that match.

Tutorials: From Noob to Pro
01-07-2012, 02:42 AM
Website Find
kartanonperuna Offline
Posting Freak

Posts: 755
Threads: 44
Joined: Oct 2011
Reputation: 8
#5
RE: A fucntion with the same name and the parameters already exist?

Oh and its talking about the hps not the map.

Edit:Hah yes
Here my script:


void OnStart()
{
AddEntityCollideCallback("crowbar_joint_2", "crowcollide", "crowopen_func", true, 1);
AddUseItemCallback("", "crowbar_1", "prison_locked", "activatecrowdoor", true);
}



void crowopen_func(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorLocked("prison_locked", false, true);
CreateParticleSystemAtEntity("", "ps_break_wood.ps", "area1", false);
SetEntityActive("crowbar_joint_2", false);
GiveSanityBoost();
PlaySoundAtEntity("", "break_wood.snt", "area1", 0, false);
SetSwingDoorClosed("prison_locked", false, true);
SetSwingDoorDisableAutoClose("prison_locked", true);
AddPropImpulse("prison_locked", 0, 0, -3, "world");
}

void activatecrowdoor(string &in asItem, string &in asEntity)
{
SetEntityActive("crowbar_joint_2", true);
RemoveItem("crowbar_1");
}
(This post was last modified: 01-07-2012, 02:44 AM by kartanonperuna.)
01-07-2012, 02:43 AM
Website Find
BlueFury Offline
Senior Member

Posts: 470
Threads: 30
Joined: May 2011
Reputation: 9
#6
RE: A fucntion with the same name and the parameters already exist?

Just easily call them 'A' and 'B' for example.

It's highly recommended to rename objects that are important to the gameplay to your own name to prevent further issues.

Sticks and stones may break our bones, but words will break our hearts. – Robert Fulghum
(This post was last modified: 01-07-2012, 02:47 AM by BlueFury.)
01-07-2012, 02:46 AM
Find
kartanonperuna Offline
Posting Freak

Posts: 755
Threads: 44
Joined: Oct 2011
Reputation: 8
#7
RE: A fucntion with the same name and the parameters already exist?

I dont know what to take out.
(This post was last modified: 01-07-2012, 02:46 AM by kartanonperuna.)
01-07-2012, 02:46 AM
Website Find
BlueFury Offline
Senior Member

Posts: 470
Threads: 30
Joined: May 2011
Reputation: 9
#8
RE: A fucntion with the same name and the parameters already exist?

Quote: PlaySoundAtEntity("", "break_wood.snt", "area1", 0, false);
Don't you miss something there?

Sticks and stones may break our bones, but words will break our hearts. – Robert Fulghum
01-07-2012, 02:48 AM
Find
kartanonperuna Offline
Posting Freak

Posts: 755
Threads: 44
Joined: Oct 2011
Reputation: 8
#9
RE: A fucntion with the same name and the parameters already exist?

No?What do I miss?
01-07-2012, 02:51 AM
Website Find
BlueFury Offline
Senior Member

Posts: 470
Threads: 30
Joined: May 2011
Reputation: 9
#10
RE: A fucntion with the same name and the parameters already exist?

Oh shit, my bad. That script's okay.

Sticks and stones may break our bones, but words will break our hearts. – Robert Fulghum
01-07-2012, 02:53 AM
Find




Users browsing this thread: 2 Guest(s)