AGS 3.30 Error (line 35): Undefined token 'SetVoiceMode' ?? (Solved)

Started by Wicked, Tue 09/09/2014 00:01:46

Previous topic - Next topic

Wicked

Hello

Hopefully someone can help me,this past year I updated to window 7 and have not worked in AGS for a while my game was in 3.0 version and I recently downloaded 3.30, When I clicked play  I received that message, I tried to fix it myself but I couldn't find a answer.

If anyone needs the code  here it is .sorry im green to coding, but learning

Code: ags
  if (IsSpeechVoxAvailable()==1) {
     SetVoiceMode(eSpeechVoiceAndText);
     btnVoice.Text = "Voice and Text";
     sldVoice.Value = 255;
     SetSpeechVolume(255);

Crimson Wizard

SetVoiceMode has been deprecated in 3.3.0. Substitute it with
Code: ags
Speech.VoiceMode = eSpeechVoiceAndText;


For more information refer to "Upgrading to AGS 3.3" topic in the manual.
Since you are upgrading from 3.0, "Upgrading to AGS 3.1" and "3.2" topics may come handy too.

Wicked

Woah it works thanks , there was a bunch of lines I had to reset, but it did the trick, thank you :)

SMF spam blocked by CleanTalk