kartanonperuna
Posting Freak
Posts: 755
Threads: 44
Joined: Oct 2011
Reputation:
8
|
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 |
|
Statyk
Schrödinger's Mod
Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation:
241
|
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 |
|
kartanonperuna
Posting Freak
Posts: 755
Threads: 44
Joined: Oct 2011
Reputation:
8
|
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 |
|
Your Computer
SCAN ME!
Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation:
235
|
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.
|
|
01-07-2012, 02:42 AM |
|
kartanonperuna
Posting Freak
Posts: 755
Threads: 44
Joined: Oct 2011
Reputation:
8
|
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 |
|
BlueFury
Senior Member
Posts: 470
Threads: 30
Joined: May 2011
Reputation:
9
|
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 |
|
kartanonperuna
Posting Freak
Posts: 755
Threads: 44
Joined: Oct 2011
Reputation:
8
|
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 |
|
BlueFury
Senior Member
Posts: 470
Threads: 30
Joined: May 2011
Reputation:
9
|
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 |
|
kartanonperuna
Posting Freak
Posts: 755
Threads: 44
Joined: Oct 2011
Reputation:
8
|
RE: A fucntion with the same name and the parameters already exist?
No?What do I miss?
|
|
01-07-2012, 02:51 AM |
|
BlueFury
Senior Member
Posts: 470
Threads: 30
Joined: May 2011
Reputation:
9
|
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 |
|
|