eCDEject

Started by Quwebb2000, Thu 04/02/2016 00:08:53

Previous topic - Next topic

Quwebb2000

Hello, I would like to request help with the eCDEject command.

what command do I have to use to have it work.
this is how I am using it right now:
Code: ags

function cEgo_Look()
{
  Display ("I AM THE RULER OF ALL!");
  eCDEject();
}

(this code is for testing purposes and will be in a better context later)
whenever I try to run the game it gives me a parse error.

Thanks.
I am an alien to your world. My species lives in the Oort cloud and why go by the name Xenicophnibot.

Wyz

You are nearly there: eCDEject is actually a value you have to use with the CDAudio function. Something like this:
Code: ags
CDAudio(eCDEject, 0);


This kind of value is called an enumeration and is used throughout AGS and can be seen as a setting for function you are using. They all start with a lower case 'e'.

I hope this helps you with whatever sinister plot you are planning. ;) This is not going to affect me however; I don't have a CD-player in my computer.  :-D
Life is like an adventure without the pixel hunts.

Quwebb2000

Thanks for the help.
I am an alien to your world. My species lives in the Oort cloud and why go by the name Xenicophnibot.

SMF spam blocked by CleanTalk