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
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


Messages In This Thread
Error in script... Help please - by pontusry - 04-01-2012, 04:39 AM
RE: Error in script... Help please - by flamez3 - 04-01-2012, 04:42 AM
RE: Error in script... Help please - by pontusry - 04-01-2012, 04:52 AM
RE: Error in script... Help please - by flamez3 - 04-01-2012, 05:12 AM



Users browsing this thread: 1 Guest(s)