Results 1 to 6 of 6

Thread: Song

  1. #1
    Join Date
    Sep 2008
    Location
    My House
    Posts
    519
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Song

    How do you get scar to play a song after a certain point in the script? Rather a sound then a song. Also if like in the constants you have...

    Code:
    const
    PlaySound = true;
    Then I would like it to not play the sound. Help is appreciated.

    THANKS
    Last edited by Death12652; 05-16-2010 at 07:27 PM.

  2. #2
    Join Date
    Jul 2008
    Location
    England
    Posts
    763
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    PlaySound(PATHTOFILE); ?
    lol

  3. #3
    Join Date
    Sep 2008
    Location
    My House
    Posts
    519
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    so what about making it equal true?

  4. #4
    Join Date
    Nov 2007
    Location
    46696E6C616E64
    Posts
    3,069
    Mentioned
    44 Post(s)
    Quoted
    302 Post(s)

    Default

    Quote Originally Posted by death12652 View Post
    so what about making it equal true?
    Explain? Like:
    SCAR Code:
    program New;

    const PlayAlert = True;

    begin
    if not (PlayAlert) then begin
      Writeln('Alert? :P');
    end else begin
      PlaySound(ScriptPath+'/alert.wav');
    end;
    end.
    Last edited by Frement; 05-16-2010 at 08:00 PM.
    There used to be something meaningful here.

  5. #5
    Join Date
    Sep 2008
    Location
    My House
    Posts
    519
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Like This

    Code:
    program Notify;
    var Alert : boolean;
    begin
         Alert := True
         If Alert Then
         begin
            PlaySound(ScriptPath + 'nudge.wav');
         end else
             Writeln('Alert Is Off');
    end.
    But I need the Alert := True at the top of the script for other peoples use.

  6. #6
    Join Date
    Dec 2006
    Location
    Houston, TX USA
    Posts
    4,791
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    const
      UseAlertSounds = True;

    procedure AlertSound;
    begin
      if (not (UseAlertSounds)) then
        Exit;
      PlaySound('C:\Windows\Media\Tada.wav');
    end;

    begin
      AlertSound;
    end.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •