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
Script Help Error with sound script
MaksoPL Offline
Member

Posts: 51
Threads: 26
Joined: Mar 2014
Reputation: 0
#1
Error with sound script

Hi. I've got a error with script to play sounds.
ExecuteString (1, 1) : No matching signatures to OnLeave()
main (8,1) Unexpected token {


It's my .hps file:
void OnStart()

{
AddEntityCollideCallback("Player", "sound01", "ScarySound1", true, 1);
}

void ScarySound1(string& asSoundName, string& asSoundFile, string& asEntity, float afFadeTime, bool abSaveSound);
{
PlaySoundAtEntity("explosion_rock_large", "explosion_rock_large.snt", "sound01", 1.0f, true);
}

What I've must do?
03-13-2015, 09:47 PM
Find


Messages In This Thread
Error with sound script - by MaksoPL - 03-13-2015, 09:47 PM
RE: Error with sound script - by Darkfire - 03-13-2015, 10:30 PM
RE: Error with sound script - by Neelke - 03-13-2015, 10:33 PM



Users browsing this thread: 1 Guest(s)