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
Cannot get my script to work properly
Neelke Offline
Senior Member

Posts: 668
Threads: 82
Joined: Apr 2013
Reputation: 26
#1
Cannot get my script to work properly

I've made a script where a phonograph plays a voice. However, I get Unexpected end of file when I enter. There's probably some small thing that I've missed but I cannot see it at the time. Please give me a hand Smile

void MariusWelcome(string &in asEntity, int alState)
{
PlayPhono(31, 1, 7, asEntity);
}

void PlayPhono(int iLevel, int iVoicePart, int iPart, string &in asEntity)
{
SetEntityInteractionDisabled(asEntity, true); //No more interact with phono as it does not do anything
PlaySoundAtEntity("phono_scrape", "ptest_phono_loop", asEntity, 1.0f, false);

for(int i = 1;i<=iPart;i++)
AddEffectVoice("marius_rec_lvl"+iLevel+"_0"+iPart+"_0"+iVoicePart+".ogg,
"",
"Voices", "CH05L"+iLevel+"_MariusWelcome0"+i,
true, asEntity, 4, 16
);

SetEffectVoiceOverCallback("VoiceOverPhono");
}

void VoiceOverPhono()
{
StopSound("phono_scrape", 2.0f);

//Allow the player to proceed
SetEntityActive("AreaLooseBricks", true);
}

Not too long I hope, as some people are just complaining about everything.
10-13-2013, 06:28 PM
Find


Messages In This Thread
Cannot get my script to work properly - by Neelke - 10-13-2013, 06:28 PM



Users browsing this thread: 1 Guest(s)