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
Error in script... Help please
pontusry Offline
Junior Member

Posts: 29
Threads: 10
Joined: Apr 2012
Reputation: 0
#1
Error in script... Help please

Hi, I'm working on a custom story right now and everything has been working great. But I stumbled upon a little error which I cannot solve.

This is not the entire script of course, but I'm gonna write what troubles me.



void OnStart()
{
SetEntityCallbackFunc("crowbar_1", "crowbarpickup");
}

void crowbarpickup(string &in asEntity, string &in type)
{
PlaySoundAtEntity("", "attack_claw_hit.snt", "Player", 0, false);
GivePlayerDamage(30, "damage_claws2.tga", "", false); <--Problem. Script works if I delete this one.
SetPlayerActive(false);
SetPlayerCrouching(true);
SetLanternDisabled(true);
FadePlayerRollTo(75, 10, 100);
AddTimer("",0.3,"blacksout");
}


When I try to test this script, I get the error:

"main (260, 1) : ERR : No matching signatures to
'GivePlayerDamage(const uint, string@&, string@&, const bool)' "

I use Notepad++, and on Ln: 260 Col: 1, I can't really see what the problem is. I know Notepad can give you the wrong hints on where the error is, happened before. That's why I'm asking you for help. I'm heading off to bed now, and I would be the happiest man alive if some awesome person solved this til' I wake up.

Thanks in advance, pontusry.
(This post was last modified: 04-01-2012, 04:40 AM by pontusry.)
04-01-2012, 04:39 AM
Find
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#2
RE: Error in script... Help please

GivePlayerDamage(30.0f, "damage_claws2", false, false);


try that

04-01-2012, 04:42 AM
Find
pontusry Offline
Junior Member

Posts: 29
Threads: 10
Joined: Apr 2012
Reputation: 0
#3
RE: Error in script... Help please

(04-01-2012, 04:42 AM)flamez3 Wrote: GivePlayerDamage(30.0f, "damage_claws2", false, false);


try that
I don't know who you are, but if I weren't straight, I would french kiss you against your will.

Thank you so much for the quick reply, this helped.
04-01-2012, 04:52 AM
Find
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#4
RE: Error in script... Help please

I don't know if I should be scared or happy regarding your comment Big Grin

(This post was last modified: 04-01-2012, 05:13 AM by flamez3.)
04-01-2012, 05:12 AM
Find




Users browsing this thread: 4 Guest(s)